summaryrefslogtreecommitdiff
path: root/apache/staging.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'apache/staging.wsgi')
-rw-r--r--apache/staging.wsgi12
1 files changed, 12 insertions, 0 deletions
diff --git a/apache/staging.wsgi b/apache/staging.wsgi
new file mode 100644
index 0000000..33e898a
--- /dev/null
+++ b/apache/staging.wsgi
@@ -0,0 +1,12 @@
+import os
+import sys
+import site
+
+PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
+site_packages = os.path.join(PROJECT_ROOT, 'env/lib/python2.6/site-packages')
+site.addsitedir(os.path.abspath(site_packages))
+sys.path.insert(0, PROJECT_ROOT)
+os.environ['DJANGO_SETTINGS_MODULE'] = 'generic_django.settings'
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler() \ No newline at end of file