πŸ“Š Django
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
πŸ’¬ Discuss
βœ… 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.

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate