title: For a Django middleware class, how can process_request work just fine, but process_exception not be called?
body: <p>I've created my own middleware class in Django that was working just fine until recently. The strange thing is that <em>process_request</em> still gets called just fine, but even when the response is 500 - internal server error, process_exception is not called at all. Why?</p>
  <p>It makes no difference whether I declare my middleware class as the first or the last entry in the list of installed middleware in the settings file.</p>