fix for running elearning on apache
This commit is contained in:
parent
0419d084fa
commit
97e2814c3f
1 changed files with 7 additions and 2 deletions
|
@ -8,9 +8,14 @@ https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from django.core.wsgi import get_wsgi_application
|
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()
|
application = get_wsgi_application()
|
||||||
|
|
Loading…
Reference in a new issue