Re: Handle uncaught exceptions?

2017-02-28 Thread Александр Христюхин (roboslone)
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
 



> On 28 Feb 2017, at 08:57, Chillar Anand  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 
>  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 
> .
> 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/fddd8515-bf54-4e73-94e4-e0f9afe42188%40googlegroups.com
>  
> .
> For more options, visit 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.


Handle uncaught exceptions?

2017-02-28 Thread Chillar Anand
In staging server, for staff users, I am trying to show actual exception 
even if DEBUG is False.

I am using this wsgi file 
 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.
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/fddd8515-bf54-4e73-94e4-e0f9afe42188%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.