summaryrefslogtreecommitdiff
path: root/testapp/apache/django.wsgi
diff options
context:
space:
mode:
authorparth2011-12-09 04:02:19 +0530
committerparth2011-12-09 04:02:19 +0530
commit861d2cc5e36835f60bace61a919e73b4bd27274b (patch)
treed08d776f58167903781c371d147f5b9e1f83e168 /testapp/apache/django.wsgi
parent7104f495d01fb934af11c8dfd09da087174c1b12 (diff)
downloadonline_test-861d2cc5e36835f60bace61a919e73b4bd27274b.tar.gz
online_test-861d2cc5e36835f60bace61a919e73b4bd27274b.tar.bz2
online_test-861d2cc5e36835f60bace61a919e73b4bd27274b.zip
Moved all the apps to testapp folder
Diffstat (limited to 'testapp/apache/django.wsgi')
-rw-r--r--testapp/apache/django.wsgi18
1 files changed, 18 insertions, 0 deletions
diff --git a/testapp/apache/django.wsgi b/testapp/apache/django.wsgi
new file mode 100644
index 0000000..ef88526
--- /dev/null
+++ b/testapp/apache/django.wsgi
@@ -0,0 +1,18 @@
+import os
+from os.path import dirname, abspath
+import sys
+
+# This file is inside online_test/apache/django.wsgi
+# pth should be online_test
+pth = abspath(dirname(dirname(__file__)))
+if pth not in sys.path:
+ sys.path.append(pth)
+# Now add the parent of online_test also.
+pth = dirname(pth)
+if pth not in sys.path:
+ sys.path.append(pth)
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'online_test.settings'
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()