web/ldtplatform/manage.py
author verrierj
Thu, 15 Sep 2011 12:03:02 +0200
changeset 177 32fbed79d3a1
parent 2 93d48df946cb
child 639 14fe3554ad26
permissions -rw-r--r--
Display search results on multiple pages
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)