fix for running elearning on apache

This commit is contained in:
tkupek 2016-03-19 11:15:48 +01:00
parent 0419d084fa
commit 97e2814c3f

View file

@ -8,9 +8,14 @@ https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
import sys
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tkupek_elearning.settings")
base = os.path.dirname(os.path.dirname(__file__))
base_parent = os.path.dirname(base)
sys.path.append(base)
sys.path.append(base_parent)
os.environ["DJANGO_SETTINGS_MODULE"] = "tkupek_elearning.settings"
application = get_wsgi_application()