mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #26452 -- Loaded middleware on server start rather than on first request.
This commit is contained in:
parent
23aa700b78
commit
99bb7fcc18
4 changed files with 15 additions and 24 deletions
|
@ -260,8 +260,12 @@ of caveats:
|
|||
define ``__init__`` as requiring any arguments.
|
||||
|
||||
* Unlike the ``process_*`` methods which get called once per request,
|
||||
``__init__`` gets called only *once*, when the Web server responds to the
|
||||
first request.
|
||||
``__init__`` gets called only *once*, when the Web server starts.
|
||||
|
||||
.. versionchanged:: 1.10
|
||||
|
||||
In older versions, ``__init__`` was not called until the Web server
|
||||
responded to its first request.
|
||||
|
||||
Marking middleware as unused
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue