summaryrefslogtreecommitdiff
path: root/docs/howto
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:29:40 -0400
commitca77e38d243c5f1f1a5070cba0988d230d0bb050 (patch)
tree78b2fff8c50ec0b777cc02cd102647d3389d01d8 /docs/howto
parentefee30e6b0ea5c7bbfd4adb84c186f92edf49c13 (diff)
[1.4.x] Cleaned up 1.4.8 release notes
Backport of 8d29005524 from master
Diffstat (limited to 'docs/howto')
-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 64af2a0980..5314821f49 100644
--- a/docs/howto/error-reporting.txt
+++ b/docs/howto/error-reporting.txt
@@ -123,6 +123,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
@@ -236,11 +238,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)