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
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
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
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,
4 matches
Mail list logo