blob: 0d1f07b4b854663bbcd385b12c05d7cc0c551b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import os, sys
os.environ['DJANGO_SETTINGS_MODULE'] = 'pyc.settings'
import django.core.handlers.wsgi
djangoapplication = django.core.handlers.wsgi.WSGIHandler()
def application(environ, start_response):
if 'SCRIPT_NAME' in environ:
del environ['SCRIPT_NAME']
return djangoapplication(environ, start_response)
|