summaryrefslogtreecommitdiff
path: root/docs/howto/error-reporting.txt
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-09-15 14:14:26 -0400
committerTim Graham <timograham@gmail.com>2013-09-15 14:14:26 -0400
commit8d29005524b141da8ff4d9b9bc4d858d43bb7154 (patch)
tree25a0931b16edd003fe22e953367520db68b6cff2 /docs/howto/error-reporting.txt
parentaae5a96d5754ad34e48b7f673ef2411a3bbc1015 (diff)
Cleaned up 1.5.4/1.4.8 release notes
Diffstat (limited to 'docs/howto/error-reporting.txt')
-rw-r--r--docs/howto/error-reporting.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/howto/error-reporting.txt b/docs/howto/error-reporting.txt
index 5ebed92187..54de19cef7 100644
--- a/docs/howto/error-reporting.txt
+++ b/docs/howto/error-reporting.txt
@@ -117,6 +117,8 @@ Filtering error reports
Filtering sensitive information
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.. currentmodule:: django.views.decorators.debug
+
Error reports are really helpful for debugging errors, so it is generally
useful to record as much relevant information about those errors as possible.
For example, by default Django records the `full traceback`_ for the
@@ -240,11 +242,13 @@ attribute::
request.exception_reporter_filter = CustomExceptionReporterFilter()
...
+.. currentmodule:: django.views.debug
+
Your custom filter class needs to inherit from
:class:`django.views.debug.SafeExceptionReporterFilter` and may override the
following methods:
-.. class:: django.views.debug.SafeExceptionReporterFilter
+.. class:: SafeExceptionReporterFilter
.. method:: SafeExceptionReporterFilter.is_active(self, request)