Handle uncaught exceptions?

12 views
Skip to first unread message

Chillar Anand

unread,
Feb 28, 2017, 7:08:17 AM2/28/17
to Django users
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?

"Александр Христюхин (roboslone)"

unread,
Feb 28, 2017, 7:28:57 AM2/28/17
to django...@googlegroups.com
Hi, what you need is a middleware with process_exception method. Be sure that it's the last one in MIDDLEWARE setting.


--
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...@googlegroups.com.
To post to this group, send email to django...@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.

Reply all
Reply to author
Forward
0 new messages