On Wed, 2009-08-05 at 09:29 +0300, Mirat Can Bayrak wrote:
> On Tue, 4 Aug 2009 16:47:37 -0500
> Alex Gaynor <alex.gay...@gmail.com> wrote:
[...]

> > Right now there is a bug in django's middleware where it doesn't
> > correct catch exceptions: http://code.djangoproject.com/ticket/6094. 


> than... what should i do?

Don't raise an exception. A 404 exception is eventually turned into an
HttpResponse with the appropriate status code, so construct one manually
and return that from the middleware. Once you return a response, no
further processing happens (for request middleware). That's one of the
major points about middleware.

Regards,
Malcolm




--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to