blob: 0b932dae01b91464e63babc16af38d1b0f182c93 [file] [log] [blame]
Joe Gregorioe48a4912010-09-27 15:05:36 -04001#!/usr/bin/python
2from django.core.management import execute_manager
3try:
4 import settings # Assumed to be in the same directory.
5except ImportError:
6 import sys
Joe Gregoriodeeb0202011-02-15 14:49:57 -05007 sys.stderr.write("""Error: Can't find the file 'settings.py' in the
8directory containing %r. It appears you've customized things. You'll
9have to run django-admin.py, passing it your settings module.
10(If the file settings.py does indeed exist, it's causing an ImportError
11somehow.)\n""" % __file__)
Joe Gregorioe48a4912010-09-27 15:05:36 -040012 sys.exit(1)
13
14if __name__ == "__main__":
15 execute_manager(settings)