Hello. I wrote the http://chronosbox.org/blog/manipulando-erros-http-403-permissao-negada-no-django?lang=en .. at time that I did it I don't know about django.core.exceptions.PermissionDenied, but it can be used at Http403Middleware. The real idea behind this code is allow developers at company, write a custom template to HTTP 403 responses, because this type of response is really commun and we have various projects.
So I think that ticket http://code.djangoproject.com/ticket/5515 that Lukaz Rekucki posted solve the problem with Http403. +1 to this ticket. 2010/6/28 Michael Cetrulo <mail2sa...@gmail.com> > as I've said, that isn't http module; an Http403 would be nice. > > > On Mon, Jun 28, 2010 at 1:17 PM, Tom Evans <tevans...@googlemail.com>wrote: > >> On Mon, Jun 28, 2010 at 5:13 PM, Michael Cetrulo <mail2sa...@gmail.com> >> wrote: >> > that's incorrect, we're talking about exceptions that go back as status >> > codes not internals for the application itself. >> > >> >> django.core.exceptions.PermissionDenied is caught by >> BaseHandler::get_response() and converts it into a >> HttpResponseForbidden (django/core/handlers/base.py + 134) >> >> Cheers >> >> Tom >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django developers" group. >> To post to this group, send email to django-develop...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-developers+unsubscr...@googlegroups.com<django-developers%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-developers?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-develop...@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com<django-developers%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > -- Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://chronosbox.org/blog Twitter: http://twitter.com/chronossc -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.