summaryrefslogtreecommitdiffstats
path: root/hyperkitty/apache/django.wsgi
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-07-25 19:01:10 -0400
committerAamir Khan <syst3m.w0rm@gmail.com>2012-07-25 19:01:10 -0400
commit3b7438fd3ad38b8ae60369d9dcfa0bbb626fd6a5 (patch)
treee7053abfe5c6316e54339b873bf31629d4c613a5 /hyperkitty/apache/django.wsgi
parent5209122f1de7a0185f2a6fd44e24ff2f4858883d (diff)
downloadhyperkitty-3b7438fd3ad38b8ae60369d9dcfa0bbb626fd6a5.tar.gz
hyperkitty-3b7438fd3ad38b8ae60369d9dcfa0bbb626fd6a5.tar.xz
hyperkitty-3b7438fd3ad38b8ae60369d9dcfa0bbb626fd6a5.zip
Removed apache deployement files from hyperkitty
Diffstat (limited to 'hyperkitty/apache/django.wsgi')
-rwxr-xr-xhyperkitty/apache/django.wsgi42
1 files changed, 0 insertions, 42 deletions
diff --git a/hyperkitty/apache/django.wsgi b/hyperkitty/apache/django.wsgi
deleted file mode 100755
index cc699a4..0000000
--- a/hyperkitty/apache/django.wsgi
+++ /dev/null
@@ -1,42 +0,0 @@
-import os
-import sys
-import site
-
-STAGING=True
-
-if STAGING:
- # staging virtual environment
- vepath = '/home/akhan/.virtualenvs/wackyenv/lib/python2.7/site-packages'
-else:
- # live virtual environment
- vepath = '/home/akhan/.virtualenvs/live-server/lib/python2.7/site-packages'
-
-prev_sys_path = list(sys.path)
-
-# add the site-packages of our virtualenv as a site dir
-site.addsitedir(vepath)
-
-# add the app's directory to the PYTHONPATH
-sys.path.append('/home/akhan/gsoc')
-
-# reorder sys.path so new directories from the addsitedir show up first
-new_sys_path = [p for p in sys.path if p not in prev_sys_path]
-
-for item in new_sys_path:
- sys.path.remove(item)
-sys.path[:0] = new_sys_path
-
-
-#Calculate the path based on the location of the WSGI script.
-apache_configuration= os.path.dirname(__file__)
-project = os.path.dirname(apache_configuration)
-workspace = os.path.dirname(project)
-sys.path.append(workspace)
-
-
-os.environ['DJANGO_SETTINGS_MODULE'] = 'gsoc.apache.settings_production'
-# make sure this directory is writable by wsgi process
-os.environ['PYTHON_EGG_CACHE'] = '/home/akhan/gsoc/.python-egg'
-
-from django.core.handlers.wsgi import WSGIHandler
-application = WSGIHandler()