import sys import os from django.core.handlers.wsgi import WSGIHandler # If using virtualenvs import site envpath = "/Users/jero/dev/thm_env/lib/python2.7/site-packages" site.addsitedir(envpath) sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'THM')) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' application = WSGIHandler()