Ticket #3299: management.diff
File management.diff, 1.1 KB (added by , 18 years ago) |
---|
-
django/core/management.py
25 25 # which has been installed. 26 26 PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf', '%s_template') 27 27 28 INVALID_PROJECT_NAMES = ('django', ' test')28 INVALID_PROJECT_NAMES = ('django', 'site', 'test') 29 29 30 30 # Set up the terminal color scheme. 31 31 class dummy: pass … … 708 708 "Creates a Django project for the given project_name in the given directory." 709 709 from random import choice 710 710 if project_name in INVALID_PROJECT_NAMES: 711 sys.stderr.write(style.ERROR("Error: %r isn't a valid project name. Please try another.\n" % project_name))711 sys.stderr.write(style.ERROR("Error: '%r' conflicts with the name of an existing Python module and cannot be used as a project name. Please try another name.\n" % project_name)) 712 712 sys.exit(1) 713 713 _start_helper('project', project_name, directory) 714 714 # Create a random SECRET_KEY hash, and put it in the main settings.