Kaydet (Commit) f95bd89e authored tarafından Ville Skyttä's avatar Ville Skyttä Kaydeden (comit) Tim Graham

Fixed #27041 -- Documented that built-in middleware are compatible with…

Fixed #27041 -- Documented that built-in middleware are compatible with MIDDLEWARE and MIDDLEWARE_CLASSES.
üst 8c3bc5cd
...@@ -311,7 +311,8 @@ Upgrading pre-Django 1.10-style middleware ...@@ -311,7 +311,8 @@ Upgrading pre-Django 1.10-style middleware
Django provides ``django.utils.deprecation.MiddlewareMixin`` to ease creating Django provides ``django.utils.deprecation.MiddlewareMixin`` to ease creating
middleware classes that are compatible with both :setting:`MIDDLEWARE` and the middleware classes that are compatible with both :setting:`MIDDLEWARE` and the
old :setting:`MIDDLEWARE_CLASSES`. old :setting:`MIDDLEWARE_CLASSES`. All middleware classes included with Django
are compatible with both settings.
The mixin provides an ``__init__()`` method that accepts an optional The mixin provides an ``__init__()`` method that accepts an optional
``get_response`` argument and stores it in ``self.get_response``. ``get_response`` argument and stores it in ``self.get_response``.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment