Tuesday, February 28, 2017

Re: Handle uncaught exceptions?

Hi, what you need is a middleware with process_exception method. Be sure that it's the last one in MIDDLEWARE setting.


On 28 Feb 2017, at 08:57, Chillar Anand <anand21nanda@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 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+unsubscribe@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.

No comments:

Post a Comment