summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-10-27 16:09:52 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-10-27 16:09:52 +0000
commit1a3bca2b847d97542f61884d09c7fd3fcad8486d (patch)
tree0217c3f66bd55c763ea1c2716dea05f2d7655ad2
parent62c574e765f149f6152c3092e1c6e511e24cb465 (diff)
Wrapped some long lines and orginized imports.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/commands/startapp.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/django/core/management/commands/startapp.py b/django/core/management/commands/startapp.py
index 20ab397da1..a3d517dd7a 100644
--- a/django/core/management/commands/startapp.py
+++ b/django/core/management/commands/startapp.py
@@ -1,8 +1,10 @@
-from django.core.management.base import copy_helper, CommandError, LabelCommand
import os
+from django.core.management.base import copy_helper, CommandError, LabelCommand
+
class Command(LabelCommand):
- help = "Creates a Django app directory structure for the given app name in the current directory."
+ help = ("Creates a Django app directory structure for the given app name"
+ " in the current directory.")
args = "[appname]"
label = 'application name'
@@ -19,11 +21,13 @@ class Command(LabelCommand):
# current directory if no directory was passed).
project_name = os.path.basename(directory)
if app_name == project_name:
- raise CommandError("You cannot create an app with the same name (%r) as your project." % app_name)
+ raise CommandError("You cannot create an app with the same name"
+ " (%r) as your project." % app_name)
copy_helper(self.style, 'app', app_name, directory, project_name)
class ProjectCommand(Command):
- help = "Creates a Django app directory structure for the given app name in this project's directory."
+ help = ("Creates a Django app directory structure for the given app name"
+ " in this project's directory.")
def __init__(self, project_directory):
super(ProjectCommand, self).__init__()