summaryrefslogtreecommitdiff
path: root/docs/topics/http/middleware.txt
AgeCommit message (Collapse)Author
2026-01-31Refs #34118 -- Removed asgiref coroutine detection shims.Jacob Walls
As Python 3.12 is now the floor, we can drop the shims and use the `inspect` module.
2023-09-18Removed versionadded/changed annotations for 4.2.Mariusz Felisiak
This also removes remaining versionadded/changed annotations for older versions.
2023-03-01Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.django-bot
2023-02-14Fixed #34328 -- Added async-only class-based middleware example.Carlton Gibson
2022-12-22Fixed #33735 -- Added async support to StreamingHttpResponse.Carlton Gibson
Thanks to Florian Vazelle for initial exploratory work, and to Nick Pope and Mariusz Felisiak for review.
2022-12-20Refs #34118 -- Adopted asgiref coroutine detection shims.Carlton Gibson
Thanks to Mariusz Felisiak for review.
2022-10-29Removed obsolete doc reference to asyncio.iscoroutinefunction.Nick Pope
2021-07-30Refs #32956 -- Updated words ending in -wards.David Smith
AP styleguide: Virtually none of the words ending with -wards end with an s.
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-04-09Fixed #32535 -- Added note about DEBUG_PROPAGATE_EXCEPTIONS setting to ↵Hasan Ramezani
middleware docs.
2021-01-14Removed versionadded/changed annotations for 3.1.Mariusz Felisiak
2020-03-26Clarified async documentation.Adam Johnson
2020-03-18Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin
This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
2020-02-18Refs #26601 -- Deprecated passing None as get_response arg to middleware ↵Claude Paroz
classes. This is the new contract since middleware refactoring in Django 1.10. Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2018-11-15Used auto-numbered lists in documentation.François Freitag
2017-06-26Refs #23919 -- Stopped inheriting from object to define new style classes.Mariusz Felisiak
Tests and docs complement to cecc079168e8669138728d31611ff3a1e7eb3a9f.
2017-01-17Removed versionadded/changed annotations for 1.10.Tim Graham
2017-01-17Refs #26601 -- Removed support for old-style middleware using ↵Tim Graham
settings.MIDDLEWARE_CLASSES.
2016-08-09Fixed #27041 -- Documented that built-in middleware are compatible with ↵Ville Skyttä
MIDDLEWARE and MIDDLEWARE_CLASSES.
2016-06-17Refs #26601 -- Improved backwards-compatibility of DEP 5 middleware ↵Carl Meyer
exception handling.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-04Fixed #26452 -- Loaded middleware on server start rather than on first request.David Evans
2016-02-01Fixed #26124 -- Added missing code formatting to docs headers.rowanv
2015-09-23Removed versionadded/changed annotations for 1.8.Tim Graham
2015-09-23Refs #23957 -- Required session verification per deprecation timeline.Tim Graham
2015-06-08Fixed #24796 -- Added a hint on placement of SecurityMiddleware in ↵Marissa Zhou
MIDDLEWARE_CLASSES. Also moved it in the project template.
2015-04-24Updated startproject MIDDLEWARE_CLASSES in docs.Daniel Harding
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-17Removed request.REQUEST per deprecation timeline; refs #18659.Tim Graham
2014-11-27Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG mode.Berker Peksag
2014-07-30Fixed #23067 -- Updated docs to use django-adminChristoph Heer
2014-06-24Fixed typo in middleware docs.Peter Kowalczyk
Function definition should have an ending colon.
2014-05-22Fixed #20816 -- Added hints about Django middleware orderingClaude Paroz
Thanks gthb Trac user for the report, kolypto StackOverflow user for the initial list and Tim Graham for the review.
2014-03-24Removed versionadded/changed annotations for 1.6.Tim Graham
2014-01-22Don't show `self` in the list of arguments of a method.Baptiste Mispelon
This is consistent with Python's official documentation and it's a sphinx recommendation too[1]. [1] http://sphinx-doc.org/markup/desc.html#dir-method Refs #21855.
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-05Fixed #20862 -- Updated startproject MIDDLEWARE_CLASSES in docs.Tim Graham
Thanks Keryn Knight.
2013-04-20Adapted uses of versionchanged/versionadded to the new form.Juan Catalano
Refs #20104.
2012-12-16Replaced the test case hierarchy schema with a vector version.Aymeric Augustin
The OmniGraffle source file is included for future use.
2012-12-16Added PDF version of SVG file for latexpdf builds.Aymeric Augustin
Thanks Tim Graham for reporting this issue and testing the fix.
2012-12-09Edited the middleware doc for completeness, clarity, and consistency.Aymeric Augustin
2012-12-09Fixed #12502 -- Improved middleware diagram.Aymeric Augustin
2012-10-20Fixed #7581 -- Added streaming responses.Aymeric Augustin
Thanks mrmachine and everyone else involved on this long-standing ticket.
2012-09-20Fixed #18934 - Removed versionadded/changed annotations for Django 1.3Tim Graham
2012-07-08Fixed #18577 - Clarified middleware initialization.Tim Graham
Thanks Lukasz Balcerzak for the patch.
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-11Fixed #17035, #17036 -- Clarified documentation regarding TemplateResponse ↵Carl Meyer
and middleware handling. Refs #16004. Thanks ptone. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16961 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-16Fixed #16863 -- Corrected ReST markup to avoid errors building docs.Carl Meyer
Although directives such as "note" and "warning" will accept content immediately following the directive, this is technically where arguments to the directive should go (see http://sphinx.pocoo.org/rest.html#directives). Putting the content there means that any lines beginning with an inline text role (e.g. ":setting:`DEBUG`") will be mis-interpreted as an option block for the directive. To avoid this error, there should always be a blank line between the directive start and the directive content. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-09Fixed #16384: warn against accessing request.POST/REQUEST in middleware.Jacob Kaplan-Moss
Thanks, Tom Christie. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-29Fixed #16120 -- Updated a few reference links in the docs after the ↵Jannis Leidel
contributing reorganization. Thanks to Julien and Ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16289 bcc190cf-cafb-0310-a4f2-bffc1f526a37