web/hdabo/manage.py
author ymh <ymh.work@gmail.com>
Fri, 31 Aug 2012 10:48:37 +0200
changeset 236 d662f4b0446c
parent 21 20d3375b6d28
permissions -rw-r--r--
bump version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
#!/usr/bin/env python
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
from django.core.management import execute_manager
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
import imp
21
20d3375b6d28 reformat code
ymh <ymh.work@gmail.com>
parents: 0
diff changeset
     4
import settings
0
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
try:
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    imp.find_module('settings') # Assumed to be in the same directory.
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
except ImportError:
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    import sys
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    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__)
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    sys.exit(1)
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
if __name__ == "__main__":
896db0083b76 first commit
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    execute_manager(settings)