Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #3299 -- Added 'site' to the list of INVALID_PROJECT_NAMES and …

…improved the error message. Thanks for the patch, ubernostrum

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit de60cf04d0120b6ea05e674bdda483ee79760b9b 1 parent 9d94355
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/
4 django/core/
@@ -25,7 +25,7 @@
# which has been installed.
PROJECT_TEMPLATE_DIR = os.path.join(django.__path__[0], 'conf', '%s_template')
-INVALID_PROJECT_NAMES = ('django', 'test')
+INVALID_PROJECT_NAMES = ('django', 'site', 'test')
# Set up the terminal color scheme.
class dummy: pass
@@ -708,7 +708,7 @@ def startproject(project_name, directory):
"Creates a Django project for the given project_name in the given directory."
from random import choice
if project_name in INVALID_PROJECT_NAMES:
- sys.stderr.write(style.ERROR("Error: %r isn't a valid project name. Please try another.\n" % project_name))
+ 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))
_start_helper('project', project_name, directory)
# Create a random SECRET_KEY hash, and put it in the main settings.

0 comments on commit de60cf0

Please sign in to comment.
Something went wrong with that request. Please try again.