title: django - handler404 vs handler500
body: <p>I am now a little bit confused. </p>
  
  <p>There are handler404 and handler500 in Django which I can override. I thought, I can do this: </p>
  
  <pre><code>try:
     mymodel = MyModel.objects.get(id=someid)
  except MyModel.DoesNotExist:
     raise Http404
  </code></pre>
  
  <p>But I would love to know what really caused this 404 - Server Error or just a wrong URL..</p>
  
  <p>how would this be possible? can I have infos about 500 error inside handler404?  </p>
  
  <p>in case of 500, handler500 does have a <code>RequestContext</code> and things like <code>{{STATIC_URL}}</code> will stop workingin 500.html. thats why i thought, i will raise 404 instead and email the admin inside 404 handler about error. does this make sense? </p>