title: Django - Sending error report email in try-except code
body: <p>Is it possible to hook into Django's built in error reporting emails from a <code>try</code>-<code>except</code> code block? In other words, email the default error report and stack trace to the <code>ADMINS</code>/<code>MANAGERS</code> while still having situation specific error handling.</p>
  
  <p><strong>Specific example:</strong></p>
  
  <p>In a project performing complex calculations and generating large reports, the view displaying the report page does all the calculations and generates a long html page with lots of pretty tables and graphs and also generates downloadable PDFs from sections of that same HTML.</p>
  
  <p>Recently we had errors in the PDF generation from issues with storage on S3. Now this is obviously an error we need to track down and attend, but most users are happy if they can just see the report on screen. If the PDFs download links just weren't displayed the issue could go entirely unnoticed for hours or even days - but the dev team should be notified.</p>
  
  <hr>
  
  <p>Ideally, but not necessarily, I would love a solution that is logger agnostic, where it will use whatever error logger is used and trigger the default 500 error handler, and return back to the <code>finally</code> block or after the <code>except</code> block.</p>