summaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2013-03-13 20:21:06 +0100
committerMichael DeHaan <michael.dehaan@gmail.com>2013-03-13 20:21:06 +0100
commitb5a1b2d423eb5b49dcb4698af23f996cfc3ae10a (patch)
tree05e59d0965d7d50ba8b5df31d0b258f7b82a3845 /manage.py
parentMove models to subpackage (diff)
downloadawx-b5a1b2d423eb5b49dcb4698af23f996cfc3ae10a.tar.xz
awx-b5a1b2d423eb5b49dcb4698af23f996cfc3ae10a.zip
move manage.py up one level
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/manage.py b/manage.py
new file mode 100755
index 0000000000..5e78ea979e
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+from django.core.management import execute_manager
+try:
+ import settings # Assumed to be in the same directory.
+except ImportError:
+ import sys
+ 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__)
+ sys.exit(1)
+
+if __name__ == "__main__":
+ execute_manager(settings)