well, one way to do this is through a middleware class, like this:
class SetEmptyPathInfo(object):
    def process_request(self, request):
        if not request.path:
            request.META['PATH_INFO'] = '/'
            request.path = '/'

seems to be working for now.


On Jan 22, 9:45 am, Dan Conner <[EMAIL PROTECTED]> wrote:
> I have been setting up a site with LiteSpeed serving Django. the
> basics work, but I end up with an error when requestinghttp://mysite.com/.
>
> TypeError at 'NoneType' object is not iterable at django/django/core/
> handlers/base.py in get_response, line 73.
>
> It seems very related to the ticket 
> 3414,http://code.djangoproject.com/ticket/3414.
> the second patch on that ticket fixes the problem.
>
> setting APPEND_SLASH does not affect it at all.
>
> I'd like to find a way to set environ['PATH_INFO'] without changing
> code in the django trunk and wondering if there would be a way in the
> code that is executed by LiteSpeed. Right now, it's using manage.py
> runfcgi daemonize=false method=threaded.
>
> The examples on this 
> page:http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango,
> include some code that deals with the issue, but I can't quite see how
> to use that method with LiteSpeed, or lighttpd.
>
> Thanks for any input or direction on how to approach this,
> dc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to