mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Added docstring to copy_helper
function.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
300dcd6cae
commit
c142094ffb
@ -171,6 +171,17 @@ class NoArgsCommand(BaseCommand):
|
||||
raise NotImplementedError()
|
||||
|
||||
def copy_helper(style, app_or_project, name, directory, other_name=''):
|
||||
"""
|
||||
Copies either a Django application layout template or a Django project
|
||||
layout template into the specified directory.
|
||||
|
||||
* style - A color style object (see django.core.management.color).
|
||||
* app_or_project - The string 'app' or 'project'.
|
||||
* name - The name of the application or project.
|
||||
* directory - The directory to copy the layout template to.
|
||||
* other_name - When copying an application layout, this should be the name
|
||||
of the project.
|
||||
"""
|
||||
import django
|
||||
import re
|
||||
import shutil
|
||||
|
Loading…
Reference in New Issue
Block a user