web/ldtplatform/manage.py
author ymh <ymh.work@gmail.com>
Fri, 06 May 2011 02:10:17 +0200
changeset 101 e414b5897c3f
parent 2 93d48df946cb
child 639 14fe3554ad26
permissions -rw-r--r--
make tags unicode
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)