blob: 5ed8d0c600201b9c0d4e18f898403259b9eed608 [file] [log] [blame] [edit]
import os, sys
path_list = ['/usr/local/autotest/site-packages',
'/usr/local/autotest']
for p in path_list:
if os.path.isdir(p):
sys.path.append(p)
os.environ['DJANGO_SETTINGS_MODULE'] = 'frontend.settings'
from django.core.wsgi import get_wsgi_application
import logging
_application = None
try:
_application = get_wsgi_application()
except Exception:
logging.exception("Error")
def application(environ, start_response):
environ['DJANGO_USE_POST_REWRITE'] = 'yes'
environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
return _application(environ, start_response)