summaryrefslogtreecommitdiff
path: root/wsgi.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-04 19:45:47 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-04 19:45:47 +0200
commit60b4197a9b7bba4d257066a011a5f1c5cb7ab6d1 (patch)
tree009a42a0a623dd511606875921576d09c4f2c2eb /wsgi.py
parent91aa7aa352230dcacec966b5250286d927ed9163 (diff)
downloadChimère-60b4197a9b7bba4d257066a011a5f1c5cb7ab6d1.tar.bz2
Chimère-60b4197a9b7bba4d257066a011a5f1c5cb7ab6d1.zip
Reorganize django files to have a more common conf
Diffstat (limited to 'wsgi.py')
-rw-r--r--wsgi.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/wsgi.py b/wsgi.py
new file mode 100644
index 0000000..093cc8a
--- /dev/null
+++ b/wsgi.py
@@ -0,0 +1,11 @@
+import os, sys
+
+MAIN_PATH = os.path.realpath(os.path.dirname(__file__)) + "/.."
+sys.path.append(MAIN_PATH)
+if not "DJANGO_SETTINGS_MODULE" in os.environ or \
+ not os.environ['DJANGO_SETTINGS_MODULE']:
+ # change with your project name
+ os.environ['DJANGO_SETTINGS_MODULE'] = 'mychimere_project.settings'
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
+