mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG mode.
This commit is contained in:
committed by
Tim Graham
parent
bd337184f1
commit
093e6c68b9
@@ -337,6 +337,10 @@ Middleware
|
||||
<django.middleware.common.CommonMiddleware.response_redirect_class>`
|
||||
attribute allows you to customize the redirects issued by the middleware.
|
||||
|
||||
* A debug message will be logged to the ``django.request`` logger when a
|
||||
middleware raises a :exc:`~django.core.exceptions.MiddlewareNotUsed` exception
|
||||
in :setting:`DEBUG` mode.
|
||||
|
||||
Migrations
|
||||
^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user