The way I am handling this type of thing (and this is getting into django-users territory), is to either:
- have a middleware that catches exceptions, and if they are a sub-class of HttpError, then return them, - have a framework which handles this, often by having the CBV handle it in it's dispatch method. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/KgRMAnoaz7wJ. To post to this group, send email to django-developers@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.