diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-10-30 18:18:33 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-10-30 18:18:33 +0100 |
commit | 1c03304bc25c38b6baa6de73332fd030df3e0400 (patch) | |
tree | 1b9850ea2ebb46701380f34db73765f7ab39e3aa /wsgi.py | |
parent | e52f9f1cbef803c826510bfdea46ea205240a882 (diff) | |
download | Chimère - projet de référence-1c03304bc25c38b6baa6de73332fd030df3e0400.tar.bz2 Chimère - projet de référence-1c03304bc25c38b6baa6de73332fd030df3e0400.zip |
Many improvments for searches and bootstrap themes
Diffstat (limited to 'wsgi.py')
-rw-r--r-- | wsgi.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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() + |