The Django web framework contains hooks enabling a global mechanism for modifying the request and/or response in between the web-server interface and the view. Django middleware are the components that make use of these hooks.
An example of Django middleware is a component that adds a
user attribute to each incoming
This post provides an overview of middleware in the Django web framework.