Re: How/where do you add middleware (was: empty PATH_INFO with LiteSpeed / FastCGI)

2008-02-20 Thread Joseph Heck
Austin, There's an excellent overview of the how's and why's of Middleware at http://www.djangoproject.com/documentation/middleware/ Fundamentally, you're just specifying a class that you've implemented somewhere. It can be in a folder or not - that's just matching python's module structure to t

How/where do you add middleware (was: empty PATH_INFO with LiteSpeed / FastCGI)

2008-02-17 Thread Austin Govella
On Jan 22, 9:39 pm, Dan Conner <[EMAIL PROTECTED]> wrote: > 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'] = '/' >             requ

Re: empty PATH_INFO with LiteSpeed / FastCGI

2008-01-22 Thread Dan Conner
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

empty PATH_INFO with LiteSpeed / FastCGI

2008-01-22 Thread Dan Conner
I have been setting up a site with LiteSpeed serving Django. the basics work, but I end up with an error when requesting http://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,