summaryrefslogtreecommitdiff
path: root/install/django.wsgi.template
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-04-17 19:30:20 +0200
committerÉtienne Loks <etienne.loks@proxience.com>2015-04-17 19:33:43 +0200
commite3a061f50b538e88884a0e89b99d40f6a0e193c3 (patch)
tree9111c25f355c8b5f4d4d612a52505af3c5cf04fd /install/django.wsgi.template
parent00f6c7380ed4ec9c578cca5dd93cae0b92c57b10 (diff)
downloadIshtar-e3a061f50b538e88884a0e89b99d40f6a0e193c3.tar.bz2
Ishtar-e3a061f50b538e88884a0e89b99d40f6a0e193c3.zip
Install scripts
Diffstat (limited to 'install/django.wsgi.template')
-rw-r--r--install/django.wsgi.template7
1 files changed, 7 insertions, 0 deletions
diff --git a/install/django.wsgi.template b/install/django.wsgi.template
new file mode 100644
index 000000000..54bf07351
--- /dev/null
+++ b/install/django.wsgi.template
@@ -0,0 +1,7 @@
+import os, sys
+MAIN_PATH = os.path.realpath(os.path.dirname(__file__)) + "/.."
+sys.path.append(MAIN_PATH)
+os.environ['DJANGO_SETTINGS_MODULE'] = '#SHORT_NAME#.settings'
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
+