Question: what are middleware in django?
Answer: Middleware is a framework of hooks into Django's request/response processing. It's a light, low-level “plugin” system for globally altering Django's input or output. ... Django ships with some built-in middleware you can use right out of the box. They're documented in the built-in middleware reference.