#!/usr/bin/python
import os
import sys
import site

base_path = os.path.dirname(os.path.realpath(__file__))

virtualenv_path = os.path.join(base_path, "env")
if os.path.isdir(virtualenv_path):
	site.addsitedir(os.path.join(virtualenv_path, 'lib/python2.7/site-packages'))
	sys.path.insert(0, base_path)

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

os.chdir(base_path)

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
