blob: faf9dafeb53a62d4c4231111792e5bd9731cfc26 [file] [log] [blame]
mblighe8819cd2008-02-15 16:48:40 +00001#!/usr/bin/env python
showarda5288b42009-07-28 20:06:08 +00002import common
mblighe8819cd2008-02-15 16:48:40 +00003from django.core.management import execute_manager
4try:
jadmanski0afbb632008-06-06 21:10:57 +00005 import settings # Assumed to be in the same directory.
mblighe8819cd2008-02-15 16:48:40 +00006except ImportError:
jadmanski0afbb632008-06-06 21:10:57 +00007 import sys
8 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__)
9 sys.exit(1)
mblighe8819cd2008-02-15 16:48:40 +000010
11if __name__ == "__main__":
jadmanski0afbb632008-06-06 21:10:57 +000012 execute_manager(settings)