Django calls this when a view raises an exception. This should return either None or an HttpResponse object. If it returns an HttpResponse object, the response will be returned to the browser. Otherwise, default exception handling kicks in.

🎲 Try a Random Question  |  Total Questions in Quiz: 18  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Django Middleware — practice the complete quiz, review flashcards, or try a random question.


1. Django calls this when a view raises an exception. This should return either None or an HttpResponse object. If it returns an HttpResponse object, the response will be returned to the browser. Otherwise, default exception handling kicks in.