mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
[1.6.x] Cleaned up 1.5.4/1.4.8 release notes
Backport of 8d29005524
from master
This commit is contained in:
parent
623c4916df
commit
e96bcdd64f
8 changed files with 64 additions and 22 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue