summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-10-13 16:38:19 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-10-13 16:38:19 +0000
commitc142094ffbd7a79dbb68d54487a1d6380f20d73d (patch)
treed839b4230f6eb437edb14bde2b19e95c8cef5d6a
parent300dcd6cae24595e1c1f1c3df040b5eea91b6bd6 (diff)
Added docstring to `copy_helper` function.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/base.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/django/core/management/base.py b/django/core/management/base.py
index 1c53ef835d..73baf8c149 100644
--- a/django/core/management/base.py
+++ b/django/core/management/base.py
@@ -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