summaryrefslogtreecommitdiff
path: root/src/templates/meetingtools/manage.py
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-09 11:08:19 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-09 11:08:19 +0100
commit18fb871917ea875ed8a66c017947c2678d71f5f1 (patch)
tree90fd9bbe9d3c6842a27a7dbb4dfb614c1aa9a88b /src/templates/meetingtools/manage.py
parentc33af4c971f26fcf3e7eb61a6c3dd8e8af8418a6 (diff)
restructure 2
Diffstat (limited to 'src/templates/meetingtools/manage.py')
-rw-r--r--src/templates/meetingtools/manage.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/templates/meetingtools/manage.py b/src/templates/meetingtools/manage.py
new file mode 100644
index 0000000..5e78ea9
--- /dev/null
+++ b/src/templates/meetingtools/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)