Hi, what you need is a middleware with process_exception method. Be sure that 
it's the last one in MIDDLEWARE setting.
https://docs.djangoproject.com/en/1.10/topics/http/middleware/#process-exception
 
<https://docs.djangoproject.com/en/1.10/topics/http/middleware/#process-exception>


> On 28 Feb 2017, at 08:57, Chillar Anand <anand21na...@gmail.com> wrote:
> 
> In staging server, for staff users, I am trying to show actual exception even 
> if DEBUG is False.
> 
> I am using this wsgi file 
> <https://github.com/ChillarAnand/library/blob/channels/library/wsgi.py> for 
> it. However, handle_uncaught_exception method is not getting called?
> 
> Any help on how to fix this?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com 
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com 
> <mailto:django-users@googlegroups.com>.
> Visit this group at https://groups.google.com/group/django-users 
> <https://groups.google.com/group/django-users>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/fddd8515-bf54-4e73-94e4-e0f9afe42188%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/fddd8515-bf54-4e73-94e4-e0f9afe42188%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7D869CB5-A625-4FB8-AEE2-4FE96B7074E5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to