Ticket #6509: 6509.diff
File 6509.diff, 862 bytes (added by , 17 years ago) |
---|
-
django/core/management/commands/startapp.py
23 23 if app_name == project_name: 24 24 raise CommandError("You cannot create an app with the same name" 25 25 " (%r) as your project." % app_name) 26 try: 27 module = __import__(app_name) 28 if module: 29 raise CommandError("%r conflicts with the name of an existing Python module and cannot be used as a application name. Please try another name." % app_name) 30 except ImportError: 31 pass 32 26 33 copy_helper(self.style, 'app', app_name, directory, project_name) 27 34 28 35 class ProjectCommand(Command):