2👍
✅
I don’t think this is possible currently. There was a ticket that was fixed in Django 1.9 that addresses this limitation – so from Django 1.9 you will be able to accept an exception
argument in your view.
Source:stackexchange.com