(Comments)
Below is a sample WSGI that will activate the virtual environment for a project through WSGI
Share on Twitter Share on Facebookimport os
import sys
import site
site.addsitedir('<path to virtualenv site packages>')
from django.core.handlers.wsgi import WSGIHandleros.environ['DJANGO_SETTINGS_MODULE'] = '<dot path to django settings>'
activate_this = os.path.expanduser("<virtualenv path>/bin/activate_this.py")
execfile(activate_this, dict(__file__=activate_this))application = WSGIHandler()
Comments