django middleware process exception not call

39 views
Skip to first unread message

Luis Zárate

unread,
May 18, 2016, 11:39:39 PM5/18/16
to django...@googlegroups.com
Hi,

I was working with middleware that catch exceptions and redirect to other view depending of except type.  

My idea was raise custom exceptions in several parts of the code and catch in middlewaware with proces exception function, but I have an exception raise in template tag when template is render and after process exception call, so this function is never call.

I surft in django code an understand what happen but I thing that django could call process exception if exception occurred in template o have some way to catch template exceptions, something like a function named process template exception.







--
"La utopía sirve para caminar" Fernando Birri



Reply all
Reply to author
Forward
0 new messages