Guest User

dispatch.wsgi

a guest
Feb 21st, 2017
114
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os, sys
  2.  
  3. # edit your username below
  4. sys.path.append("/home/sest.gq/public_html/djangotest");
  5.  
  6. os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
  7.  
  8. from django.core.wsgi import get_wsgi_application
  9. _application = get_wsgi_application()
  10. def application(environ, start_response):
  11. environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
  12. return _application(environ, start_response)
RAW Paste Data