1👍
✅
If error handling is supposed to happen in a view (which I assume due usage of redirect)
You can write custom middleware that process custom exception. See more in django docs:
https://docs.djangoproject.com/en/1.6/topics/http/middleware/#process-exception
Source:stackexchange.com