Q. What is the main purpose of middleware in Django?
β
Correct Answer: (C)
To process requests and responses globally
Explanation: Middleware processes requests and responses globally before they reach the view or after the response leaves the view.