https://github.com/Gibthon/Gibthon
Raw File
Tip revision: d24f69b80e7917c7b78ede04548d5944f6e86e77 authored by Haydn King on 04 November 2012, 12:50:19 UTC
Add clarification to walkthrough about reverse direction
Tip revision: d24f69b
wsgi_handler.py
import os, sys

import site
site.addsitedir('/usr/local/pythonenv/gibthon-env/lib/python2.7/site-packages')
site.addsitedir('/usr/local/pythonenv/gibthon-env/lib64/python2.7/site-packages')

gibthon_path = '/home/gibthon/site'

sys.path.append(gibthon_path)
sys.path.append(gibthon_path + '/gibthon')

os.environ['DJANGO_SETTINGS_MODULE'] = 'gibthon.settings'

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()
back to top