#26601 closed New feature (fixed)
DEP5 implementation: Improved middleware
Reported by: | Tim Graham | Owned by: | Tim Graham |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The existing Django "middleware" abstraction suffers from a lack of strict layering and balanced in/out calls to a given middleware. This DEP proposes an improved abstraction for wrapping the request cycle in layered pre-view and post-view actions.
Change History (14)
comment:1 by , 8 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 8 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Got an LGTM from Carl; awaiting technical board approval of the DEP.
comment:3 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
In 05c888ffb843ba3eff06cd07b3cef5bbb513a54f:
Refs #26601 -- Refactored BaseHandler to prepare for new-style middleware.
In 9baf692a58de78dba13aa582098781675367c329:
Fixed #26601 -- Improved middleware per DEP 0005.
In ece4d24f8e494129c098868fa792400937941fab:
Refs #26601 -- Deprecated old-style middleware.
In 354acd04af524ad82002b903df1189581c51cabe:
Refs #26601 -- Added a warning if both MIDDLEWARE AND MIDDLEWARE_CLASSES are set.
PR