aboutsummaryrefslogtreecommitdiffstats
path: root/wsgi.py
diff options
context:
space:
mode:
authorAlex Franco <alejandro.franco@linux.intel.com>2015-08-31 22:16:34 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2015-10-07 11:34:34 +0100
commit4daaf718db4650002e98ffd3819d2d6164e80404 (patch)
tree758212e60f893c8a072d825e90c06de7dba5dc13 /wsgi.py
parent8da2194bb62af9bf88647d8e96eacf977ba77218 (diff)
downloadopenembedded-core-contrib-4daaf718db4650002e98ffd3819d2d6164e80404.tar.gz
Docker based environment setup
Replicate production setup in Docker containers [YOCTO #7575] Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'wsgi.py')
-rw-r--r--wsgi.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wsgi.py b/wsgi.py
new file mode 100644
index 0000000000..99f0915afb
--- /dev/null
+++ b/wsgi.py
@@ -0,0 +1,6 @@
+import os, sys
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
+sys.path.append('/var/www/html/layerindex')
+
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()