From 7c37fce648afc92297994983279d4f019ac265f0 Mon Sep 17 00:00:00 2001 From: chirac Date: Fri, 8 Jul 2016 14:42:40 +0200 Subject: [PATCH] Erreurs dans wsgi.py --- re2o/wsgi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/re2o/wsgi.py b/re2o/wsgi.py index c78787b6..39f708d2 100644 --- a/re2o/wsgi.py +++ b/re2o/wsgi.py @@ -8,9 +8,11 @@ https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os - from django.core.wsgi import get_wsgi_application +from os.path import dirname +import sys +sys.path.append(dirname(dirname(__file__))) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "re2o.settings") application = get_wsgi_application()