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()