mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #20099 -- Eased subclassing of BrokenLinkEmailsMiddleware
Thanks Ram Rachum for the report and the initial patch, and Simon Charette for the review.
This commit is contained in:
parent
6de81d65f4
commit
f940e564e4
4 changed files with 40 additions and 9 deletions
|
@ -98,6 +98,11 @@ crawlers often request::
|
|||
(Note that these are regular expressions, so we put a backslash in front of
|
||||
periods to escape them.)
|
||||
|
||||
If you'd like to customize the behavior of
|
||||
:class:`django.middleware.common.BrokenLinkEmailsMiddleware` further (for
|
||||
example to ignore requests coming from web crawlers), you should subclass it
|
||||
and override its methods.
|
||||
|
||||
.. seealso::
|
||||
|
||||
404 errors are logged using the logging framework. By default, these log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue