aboutsummaryrefslogtreecommitdiff
path: root/portal-gui/rpkigui/manage.py
diff options
context:
space:
mode:
authorBill Fenner <fenner@electricrain.com>2010-06-12 18:58:00 +0000
committerBill Fenner <fenner@electricrain.com>2010-06-12 18:58:00 +0000
commit8cf9e9ee08f6bc8f224ac20f9d4027d245203688 (patch)
tree1d78a87cd9c910f7db4859a0ecfed302c6fbd1fe /portal-gui/rpkigui/manage.py
parent0e745fee0e6c50f49cb3aedada787a013064381e (diff)
Rename rpki to rpkigui.
svn path=/portal-gui/rpki; revision=3284
Diffstat (limited to 'portal-gui/rpkigui/manage.py')
-rw-r--r--portal-gui/rpkigui/manage.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/portal-gui/rpkigui/manage.py b/portal-gui/rpkigui/manage.py
new file mode 100644
index 00000000..5e78ea97
--- /dev/null
+++ b/portal-gui/rpkigui/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)