summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archweb.wsgi15
1 files changed, 15 insertions, 0 deletions
diff --git a/archweb.wsgi b/archweb.wsgi
new file mode 100644
index 00000000..2e174249
--- /dev/null
+++ b/archweb.wsgi
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+import os
+import sys
+import site
+
+site.addsitedir('/srv/http/archweb-env/lib/python2.7/site-packages')
+sys.path.insert(0, "/srv/http")
+sys.path.insert(0, "/srv/http/archweb")
+
+os.environ['DJANGO_SETTINGS_MODULE'] = "archweb.settings"
+
+os.chdir("/srv/http/archweb")
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()