diff options
author | Dan McGee <dan@archlinux.org> | 2013-01-13 19:22:27 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-01-13 19:23:08 -0600 |
commit | 9a9bf24787e5fe94fec00c68a7204c673d5a5206 (patch) | |
tree | 59543a0bdb8607d263aef437abe82e4700b084b6 | |
parent | 2bfdcec869ed4fceb11b9e0a2777fa53d46fb336 (diff) |
Add current production archweb.wsgi script
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | archweb.wsgi | 15 |
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() |