summaryrefslogtreecommitdiff
path: root/apache/django.wsgi
blob: ec6a31fce27869537982fee74c947891b310ebe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from os.path import dirname, abspath
import sys

# This file is inside online_test/apache/django.wsgi
MY_DIR = abspath(dirname(dirname(dirname(__file__))))
if MY_DIR not in sys.path:
    sys.path.append(MY_DIR)
    
os.environ['DJANGO_SETTINGS_MODULE'] = 'online_test.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()