mirror of https://github.com/django/django.git
Added note to default manage.py that a 'missing settings.py' message may be caused by an ImportError in the settings file
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d7e929a85d
commit
c86946f000
|
@ -4,7 +4,7 @@ try:
|
|||
import settings # Assumed to be in the same directory.
|
||||
except ImportError:
|
||||
import sys
|
||||
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__)
|
||||
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue