Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- os.environ['DJANGO_SETTINGS_MODULE'] = 'nubox.settings'
- #sys.path.append('/home/dotcloud/current/nubox')
- import django.core.handlers.wsgi
- #application = django.core.handlers.wsgi.WSGIHandler()
- 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)
Add Comment
Please, Sign In to add comment