#3762: TypeError/Unhandled exception in django.core.handlers.base.get_response()
if PATH_INFO is not in env
----------------------+-----------------------------------------------------
Reporter: xlotlu | Owner: adrian
Status: new | Component: Core framework
Version: SVN | Resolution:
Keywords: | Stage: Accepted
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------+-----------------------------------------------------
Comment (by [EMAIL PROTECTED]):
It seems a windows specific problem. I got the same version of lighttpd
running under linux and windows. By observing the "environ" from
WSGIRequest I found windows version actually give the wrong PATH_INFO. A
awkward work around can be done like the following:
replace:
self.path = environ['PATH_INFO']
with:
if environ.get('SCGI', None):
self.path = environ['REQUEST_URI'].split('?')[0]
else:
self.path = environ['PATH_INFO']
--
Ticket URL: <http://code.djangoproject.com/ticket/3762#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---