blob: b2f07f15ffac007f4aac87ade33d0e26b048edae [file] [log] [blame]
Joe Gregorioe48a4912010-09-27 15:05:36 -04001#!/usr/bin/python
INADA Naoki0bceb332014-08-20 15:27:52 +09002from __future__ import absolute_import
Joe Gregorioe48a4912010-09-27 15:05:36 -04003from django.core.management import execute_manager
4try:
INADA Naoki0bceb332014-08-20 15:27:52 +09005 from . import settings # Assumed to be in the same directory.
Joe Gregorioe48a4912010-09-27 15:05:36 -04006except ImportError:
7 import sys
Joe Gregoriodeeb0202011-02-15 14:49:57 -05008 sys.stderr.write("""Error: Can't find the file 'settings.py' in the
9directory containing %r. It appears you've customized things. You'll
10have to run django-admin.py, passing it your settings module.
11(If the file settings.py does indeed exist, it's causing an ImportError
12somehow.)\n""" % __file__)
Joe Gregorioe48a4912010-09-27 15:05:36 -040013 sys.exit(1)
14
15if __name__ == "__main__":
16 execute_manager(settings)