From 9a9bf24787e5fe94fec00c68a7204c673d5a5206 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 13 Jan 2013 19:22:27 -0600 Subject: Add current production archweb.wsgi script Signed-off-by: Dan McGee --- archweb.wsgi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 archweb.wsgi diff --git a/archweb.wsgi b/archweb.wsgi new file mode 100644 index 0000000..2e17424 --- /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() -- cgit v1.2.3-24-g4f1b