summaryrefslogtreecommitdiffstats
path: root/django.wsgi
blob: 832748657bc8e3fb667a71a9e30c282472842268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import os
import sys

current_directory = os.path.dirname(__file__)
parent_directory = os.path.dirname(current_directory)
module_name = os.path.basename(current_directory)

sys.path.append(parent_directory)
sys.path.append(current_directory)
os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % module_name
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()