Django
Middleware
Hooks processing every request on the way in and every response on the way out.
Why interviewers ask about it
Order matters and is testable: AuthenticationMiddleware must follow SessionMiddleware because it reads the session. Describe it as an onion, not a list.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.