blob: 5e78ea979ea3846a4602f604e265fc4666beffac [file] [log] [blame]
mblighe8819cd2008-02-15 16:48:40 +00001#!/usr/bin/env python
2from django.core.management import execute_manager
3try:
jadmanski0afbb632008-06-06 21:10:57 +00004 import settings # Assumed to be in the same directory.
mblighe8819cd2008-02-15 16:48:40 +00005except ImportError:
jadmanski0afbb632008-06-06 21:10:57 +00006 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(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
8 sys.exit(1)
mblighe8819cd2008-02-15 16:48:40 +00009
10if __name__ == "__main__":
jadmanski0afbb632008-06-06 21:10:57 +000011 execute_manager(settings)