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, andCOOKIEin keys.To install it, configure Django to:
DEFAULT_EXCEPTION_REPORTER_FILTER = 'missing.debug.SafeExceptionReporterFilter'
and import
missing.debugsomewhere in your code, for example, inurls.pyof your project.Note
Requires Django 1.4+.