A

Admin • 802.91K Points
Coach

Q. What is the main purpose of middleware in Django?

  • (A) To handle user authentication
  • (B) To interact with the database
  • (C) To process requests and responses globally
  • (D) To define URL patterns
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
Middleware processes requests and responses globally before they reach the view or after the response leaves the view.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.