wsgi.py 317 B

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