From c0f4c6c25960c7e9c94e89962b841509fe66a5d8 Mon Sep 17 00:00:00 2001 From: raylu Date: Thu, 12 May 2011 05:55:19 -0400 Subject: Blank Django project and dotcloud setup http://docs.dotcloud.com/tutorials/django/ --- wsgi.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 wsgi.py (limited to 'wsgi.py') diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..0d1f07b --- /dev/null +++ b/wsgi.py @@ -0,0 +1,11 @@ +import os, sys + +os.environ['DJANGO_SETTINGS_MODULE'] = 'pyc.settings' + +import django.core.handlers.wsgi +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) -- cgit v1.2.3