wsgi.py 363 B

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