title: Django: How do I use assert... without showing a system error page?
body: <p>I'm new to Django and have some code in my views.py like this:</p>
  
  <pre><code>try:
      myfunction()
  except:
      assert False, sys.exc_info()[0]
  </code></pre>
  
  <p>This is very helpful because I get an email with lots of useful info if there's an error.
  The problem is that it also redirects the user to a Webfaction system error page. What I'd like to know is how do I still get the useful error email, but redirect the user to my own error page? </p>
  
  <p>Also, is this the best way to be handling errors in Django?</p>