1
0
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:
Berker Peksag
2014-11-07 21:57:04 +02:00
committed by Tim Graham
parent bd337184f1
commit 093e6c68b9
4 changed files with 83 additions and 3 deletions

View File

@@ -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
^^^^^^^^^^