skorokithakis / django-annoying

A django application that tries to eliminate annoying things in the Django framework. ⛺
http://skorokithakis.github.io/django-annoying
BSD 3-Clause "New" or "Revised" License
921 stars 87 forks source link

Enchance exception middleware and support richer exception hierarchy #8

Open cezio opened 11 years ago

cezio commented 11 years ago

Redirect middleware is a very good idea, but it's usage is quite narrow. It would be good to use more generic approach, with richer exception hierarchy, which would allow to handle other response types.

Sample use case:

skorokithakis commented 11 years ago

Hmm, can you post some sample code to illustrate this use case? I'm not clear on what use case it would serve. Thanks!