#7871: No trailing slash in url causes TypeError with mod_wsgi
--------------------------------+-------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
--------------------------------+-------------------------------------------
My Apache config includes the following line:
{{{
WSGIScriptAlias /testing /var/www/testing/django.wsgi
}}}
and my django.wsgi looks like this:
{{{
import os, sys
path = '/var/www'
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'testing.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
}}}
http://example.com/testing/ displays correctly, but
http://example.com/testing (without the trailing slash) produces the
following error:
{{{
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in
get_response
78. request.path_info)
Exception Type: TypeError at /testing
Exception Value: 'NoneType' object is not iterable
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/7871>
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
-~----------~----~----~----~------~----~------~--~---