summaryrefslogtreecommitdiff
path: root/apache
diff options
context:
space:
mode:
Diffstat (limited to 'apache')
-rw-r--r--apache/django.wsgi13
1 files changed, 13 insertions, 0 deletions
diff --git a/apache/django.wsgi b/apache/django.wsgi
new file mode 100644
index 0000000..ec6a31f
--- /dev/null
+++ b/apache/django.wsgi
@@ -0,0 +1,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() \ No newline at end of file