summaryrefslogtreecommitdiff
path: root/papillon/manage.py
diff options
context:
space:
mode:
authoretienne2010-03-27 17:06:03 +0000
committeretienne2010-03-27 17:06:03 +0000
commit95729368a48257b110ea33dfb005785f8ed6734f (patch)
tree8b99b375a4b4a2e121a9192910af15485ea2b7c3 /papillon/manage.py
parent8ded76ae513b38d14773449e46543b54cf48ef49 (diff)
Rearrange directories - include documentation
Diffstat (limited to 'papillon/manage.py')
-rwxr-xr-xpapillon/manage.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/papillon/manage.py b/papillon/manage.py
new file mode 100755
index 0000000..bcdd55e
--- /dev/null
+++ b/papillon/manage.py
@@ -0,0 +1,11 @@
+#!/usr/bin/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)