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:25:34 -0400
commit12a30e92210144ac5e5762d55131dd10740fa463 (patch)
tree1956fe1b8394a5a802b996745470ed7daa4c48ec /docs/howto/error-reporting.txt
parentae5f4a04b42a7979ea101ca01f743a3bedd6c514 (diff)
[1.5.x] Cleaned up 1.5.4/1.4.8 release notes
Backport of 8d29005524 from master
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 6239972542..588891e07b 100644
--- a/docs/howto/error-reporting.txt
+++ b/docs/howto/error-reporting.txt
@@ -119,6 +119,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
@@ -246,11 +248,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)