Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

In which order does middleware process a response?

  1. A The same order as the request, top to bottom
  2. B Reverse order, bottom to top
  3. C Random order
  4. D Only the first middleware processes responses
Answer

Reverse order, bottom to top

Requests travel down the MIDDLEWARE list and responses travel back up, which matters when one middleware depends on another's output.

All Django MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as