You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
767 B
24 lines
767 B
import os, sys
|
|
|
|
path_list = ['/usr/local/autotest/site-packages',
|
|
'/usr/local/autotest',
|
|
'/usr/lib/python2.7/site-packages/autotest',
|
|
'/usr/lib/python2.6/site-packages/autotest',
|
|
'/usr/lib/python2.5/site-packages/autotest',
|
|
'/usr/lib/python2.4/site-packages/autotest']
|
|
|
|
for p in path_list:
|
|
if os.path.isdir(p):
|
|
sys.path.append(p)
|
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'frontend.settings'
|
|
|
|
import django.core.handlers.wsgi
|
|
|
|
_application = django.core.handlers.wsgi.WSGIHandler()
|
|
|
|
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)
|