(Comments)

Below is a sample WSGI that will activate the virtual environment for a project through WSGI

import os
import sys
import site
site.addsitedir('<path to virtualenv site packages>')
from django.core.handlers.wsgi import WSGIHandler

os.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()

Currently unrated

Comments