diff options
author | raylu <raylu@cmu.edu> | 2011-05-12 05:55:19 -0400 |
---|---|---|
committer | raylu <raylu@cmu.edu> | 2011-05-12 05:55:19 -0400 |
commit | c0f4c6c25960c7e9c94e89962b841509fe66a5d8 (patch) | |
tree | 426eb2e020d52f189db289eec0bb173af2c6d30d /wsgi.py | |
download | pyc-c0f4c6c25960c7e9c94e89962b841509fe66a5d8.tar.xz |
Blank Django project and dotcloud setup
http://docs.dotcloud.com/tutorials/django/
Diffstat (limited to 'wsgi.py')
-rw-r--r-- | wsgi.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) |