aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-02-13 11:45:38 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-02-13 12:09:57 +0000
commit2eb5f38b21396b6584f532f9bb763918f0860cdd (patch)
treee0740bc66f9cec4fe21dabc06942e1057ad52afe /manage.py
downloadopenembedded-core-contrib-2eb5f38b21396b6584f532f9bb763918f0860cdd.tar.gz
Initial commit of layerindex-web
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'manage.py')
-rw-r--r--manage.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/manage.py b/manage.py
new file mode 100644
index 0000000000..b724527d0c
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+# layerindex-web - Django management script
+#
+# Based on the Django project template
+#
+# Copyright (c) Django Software Foundation and individual contributors.
+# All rights reserved.
+
+from django.core.management import execute_manager
+import imp
+try:
+ imp.find_module('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" % __file__)
+ sys.exit(1)
+
+import settings
+
+if __name__ == "__main__":
+ execute_manager(settings)