vcp-elearning/tkupek_elearning/wsgi.py

23 lines
548 B
Python
Raw Normal View History

2016-01-20 17:51:41 +01:00
"""
2016-01-31 16:17:37 +01:00
WSGI config for tkupek_elearning project.
2016-01-20 17:51:41 +01:00
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
2016-03-19 11:15:48 +01:00
import sys
2016-01-20 17:51:41 +01:00
from django.core.wsgi import get_wsgi_application
2016-03-19 11:15:48 +01:00
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"
2016-01-20 17:51:41 +01:00
application = get_wsgi_application()
2016-03-19 13:54:19 +01:00