summaryrefslogtreecommitdiff
path: root/django/core/management/commands/startapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/management/commands/startapp.py')
-rw-r--r--django/core/management/commands/startapp.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/django/core/management/commands/startapp.py b/django/core/management/commands/startapp.py
index 23ae25446b..32e9454a3c 100644
--- a/django/core/management/commands/startapp.py
+++ b/django/core/management/commands/startapp.py
@@ -5,9 +5,10 @@ from django.core.management.templates import TemplateCommand
class Command(TemplateCommand):
- help = ("Creates a Django app directory structure for the given app "
- "name in the current directory or optionally in the given "
- "directory.")
+ help = (
+ "Creates a Django app directory structure for the given app name in "
+ "the current directory or optionally in the given directory."
+ )
missing_args_message = "You must provide an application name."
def handle(self, **options):
@@ -20,8 +21,9 @@ class Command(TemplateCommand):
except ImportError:
pass
else:
- raise CommandError("%r conflicts with the name of an existing "
- "Python module and cannot be used as an app "
- "name. Please try another name." % app_name)
+ raise CommandError(
+ "%r conflicts with the name of an existing Python module and "
+ "cannot be used as an app name. Please try another name." % app_name
+ )
super(Command, self).handle('app', app_name, target, **options)