2015-06-24 23:48 GMT+02:00 Shai Berger <[email protected]>: > That is exactly the point: Before the proposed change, you *cannot* control > the page returned for disallowed user agent via handler403(), because that > handler is called when the PermissionDenied exception is raised, not when a > Response object is returned. >
I agree with that. However handler403 can do other things in addition to returning a custom error page e.g. logging. I would find it more consistent that, whenever Django needs to return a 403, it does so by raising Http403. -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CANE-7mWNMMZn8ex0L486W%2Bf1agGbyEvCrvAPuMMvWUq%3DRD65pw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
