summaryrefslogtreecommitdiff
path: root/examples/cloudfiles_project/manage.py
diff options
context:
space:
mode:
authorYuval Adam <yuval@segmanta.com>2014-03-20 17:49:16 +0200
committerYuval Adam <yuval@segmanta.com>2014-03-20 17:49:16 +0200
commit75f93a3f7854a7383febd047391e2bfd4caceee0 (patch)
treed5e634ef292c6b84acacc3982dbcaa0d300a346e /examples/cloudfiles_project/manage.py
Initial git fork of django-storagesHEADmaster
Diffstat (limited to 'examples/cloudfiles_project/manage.py')
-rwxr-xr-xexamples/cloudfiles_project/manage.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/cloudfiles_project/manage.py b/examples/cloudfiles_project/manage.py
new file mode 100755
index 0000000..5e78ea9
--- /dev/null
+++ b/examples/cloudfiles_project/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)