Debugging¶
-
class
missing.debug.
SafeExceptionReporterFilter
¶ Safe exception reporter filter which also filters password from request environment (
META
).This is useful to not display password and other sensitive data passed to Django through its process environment.
Furthermore, it configures Django to additionally clean settings with
URL
,CSRF
, andCOOKIE
in keys.To install it, configure Django to:
DEFAULT_EXCEPTION_REPORTER_FILTER = 'missing.debug.SafeExceptionReporterFilter'
and import
missing.debug
somewhere in your code, for example, inurls.py
of your project.Note
Requires Django 1.4+.