Django

Code

Changeset 3007

Show
Ignore:
Timestamp:
05/29/06 21:47:33 (2 years ago)
Author:
adrian
Message:

Added note to default manage.py that a 'missing settings.py' message may be caused by an ImportError? in the settings file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/conf/project_template/manage.py

    r1671 r3007  
    55except ImportError: 
    66    import sys 
    7     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__) 
     7    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__) 
    88    sys.exit(1) 
    99