aboutsummaryrefslogtreecommitdiff
path: root/rpkid/portal-gui/manage.py
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2011-11-11 01:29:37 +0000
committerMichael Elkins <melkins@tislabs.com>2011-11-11 01:29:37 +0000
commit01b949d145c15297af0b88354ba508af3ec63bea (patch)
tree79728597e2316022d2afa69e950bd9bbd9df9f72 /rpkid/portal-gui/manage.py
parentacf83a1b20cc2802dad24aa2422c0bd54951c8e7 (diff)
parentdc9809bdcea60e86bb831f72e4c7da0da17bcd2e (diff)
merging /branches/tk103. closes #103
svn path=/trunk/; revision=4085
Diffstat (limited to 'rpkid/portal-gui/manage.py')
-rw-r--r--rpkid/portal-gui/manage.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/rpkid/portal-gui/manage.py b/rpkid/portal-gui/manage.py
new file mode 100644
index 00000000..5e78ea97
--- /dev/null
+++ b/rpkid/portal-gui/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)