Commit 7711154a authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

parent 795d73a4
#!/src/CHANGE_THE_PATH/env python
ALLDIRS = ['/srv/CHANGE_THE_PATH/env/lib/python2.6/site-packages']
import os
import sys
import site
sys.path.append('/srv/CHANGE_THE_PATH/www')
sys.path.append('/srv/CHANGE_THE_PATH/www/osqa')
activate_this = '/srv/CHANGE_THE_PATH/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
prev_sys_path = list(sys.path)
for directory in ALLDIRS:
site.addsitedir(directory)
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
sys.path[:0] = new_sys_path
os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment