Django

Code

Changeset 6622

Show
Ignore:
Timestamp:
10/27/07 11:09:52 (1 year ago)
Author:
gwilson
Message:

Wrapped some long lines and orginized imports.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/commands/startapp.py

    r6621 r6622  
    1 from django.core.management.base import copy_helper, CommandError, LabelCommand 
    21import os 
    32 
     3from django.core.management.base import copy_helper, CommandError, LabelCommand 
     4 
    45class Command(LabelCommand): 
    5     help = "Creates a Django app directory structure for the given app name in the current directory." 
     6    help = ("Creates a Django app directory structure for the given app name" 
     7            " in the current directory.") 
    68    args = "[appname]" 
    79    label = 'application name' 
     
    2022        project_name = os.path.basename(directory) 
    2123        if app_name == project_name: 
    22             raise CommandError("You cannot create an app with the same name (%r) as your project." % app_name) 
     24            raise CommandError("You cannot create an app with the same name" 
     25                               " (%r) as your project." % app_name) 
    2326        copy_helper(self.style, 'app', app_name, directory, project_name) 
    2427 
    2528class ProjectCommand(Command): 
    26     help = "Creates a Django app directory structure for the given app name in this project's directory." 
     29    help = ("Creates a Django app directory structure for the given app name" 
     30            " in this project's directory.") 
    2731 
    2832    def __init__(self, project_directory):