diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-04 19:59:21 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-04 19:59:21 +0200 |
commit | 22f9a272242bb7fa18f92b3f7b1ed556e1a8f20e (patch) | |
tree | 383c5c88eb2021461f5dfbb39e7ec5c84ad7afb4 | |
parent | 60b4197a9b7bba4d257066a011a5f1c5cb7ab6d1 (diff) | |
download | Chimère-22f9a272242bb7fa18f92b3f7b1ed556e1a8f20e.tar.bz2 Chimère-22f9a272242bb7fa18f92b3f7b1ed556e1a8f20e.zip |
Adapt default wsgi.py to the new organization
-rw-r--r-- | wsgi.py | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -1,11 +1,6 @@ -import os, sys +import os -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() +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() |