web/ldtplatform/manage.py
author verrierj
Thu, 02 Feb 2012 15:30:15 +0100
changeset 507 9b3ad1aa1868
parent 2 93d48df946cb
child 639 14fe3554ad26
permissions -rw-r--r--
Merge with d6371bde0c13b36b44c186d40f78ae4355f94c85
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
#!/usr/bin/env python
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from django.core.management import execute_manager
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
try:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    import settings # Assumed to be in the same directory.
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
except ImportError:
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    import sys
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     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__)
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    sys.exit(1)
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
if __name__ == "__main__":
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    execute_manager(settings)