Concept Flow - Middleware configuration
Start Django Request
Enter Middleware 1: process_request
Enter Middleware 2: process_request
View Function Executes
Enter Middleware N: process_response
Enter Middleware N-1: process_response
Return Final Response
Django processes a request through middleware in order, then the view runs, then middleware process the response in reverse order.