Guest User

Untitled

a guest
Oct 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import os
  2. import sys
  3. os.environ['DJANGO_SETTINGS_MODULE'] = 'nubox.settings'
  4. #sys.path.append('/home/dotcloud/current/nubox')
  5. import django.core.handlers.wsgi
  6. #application = django.core.handlers.wsgi.WSGIHandler()
  7. djangoapplication = django.core.handlers.wsgi.WSGIHandler()
  8. def application(environ, start_response):
  9. if 'SCRIPT_NAME' in environ:
  10. del environ['SCRIPT_NAME']
  11. return djangoapplication(environ, start_response)
Add Comment
Please, Sign In to add comment