From c86946f000d4620faaef7162bfe6c73f13ae4085 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 30 May 2006 02:47:33 +0000 Subject: [PATCH] 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 --- django/conf/project_template/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/conf/project_template/manage.py b/django/conf/project_template/manage.py index 008aeeb72b..5e78ea979e 100755 --- a/django/conf/project_template/manage.py +++ b/django/conf/project_template/manage.py @@ -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__":