bgneal@0: #!/usr/bin/env python bgneal@0: from django.core.management import execute_manager bgneal@0: import imp bgneal@0: try: bgneal@0: imp.find_module('settings') # Assumed to be in the same directory. bgneal@0: except ImportError: bgneal@0: import sys bgneal@0: 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__) bgneal@0: sys.exit(1) bgneal@0: bgneal@0: import settings bgneal@0: bgneal@0: if __name__ == "__main__": bgneal@0: execute_manager(settings)