    <django.middleware.common.CommonMiddleware.response_redirect_class>`
    attribute allows you to customize the redirects issued by the middleware.
  
  Migrations
  ^^^^^^^^^^
  
  * The :class:`~django.db.migrations.operations.RunSQL` operation can now handle
    parameters passed to the SQL statements.
  
 
</s> remove that piece of middleware from the middleware process.
 </s> add that piece of middleware from the middleware process and a debug message will
be logged to the ``django.request`` logger when :setting:`DEBUG` is set to
``True``.

.. versionchanged:: 1.8

    Previously, :exc:`~django.core.exceptions.MiddlewareNotUsed` exceptions
    weren't logged. </s> remove from django.test import TestCase, override_settings
 </s> add from django.test import RequestFactory, TestCase, override_settings
from django.test.utils import patch_logger </s> remove             except MiddlewareNotUsed:
 </s> add             except MiddlewareNotUsed as exc:
                if settings.DEBUG:
                    if six.text_type(exc):
                        logger.debug('MiddlewareNotUsed(%r): %s', middleware_path, exc)
                    else:
                        logger.debug('MiddlewareNotUsed: %r', middleware_path)
* 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.

    <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
  ^^^^^^^^^^
  
  * The :class:`~django.db.migrations.operations.RunSQL` operation can now handle
    parameters passed to the SQL statements.
  
keep keep add keep keep keep keep keep keep
 Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG mode. 
docs/releases/1.8.txt