I tried searching for exactly how request response cycle works and role of process_view in Django:
Here's my understanding so far:
- Request Passes through all middleware
- URL Dispatcher starts
- a - If a url is found and corresponding view is found then all middlewares process views are called in order
- b - else 404 page not found is returned and no process view function is called
- Whether the page is found or 404 is about to be returned response passes through each middleware again in reverese order....