title: How to specify a custom 404 view for Django using Class Based Views?
body: <p>Using Django, you can override the default 404 page by doing this in the root <code>urls.py</code>:</p>
  
  <pre><code>handler404 = 'path.to.views.custom404'
  </code></pre>
  
  <p>How to do this when using Class based views? I can't figure it out and the documentation doesn't seem to say anything.</p>
  
  <p>I've tried:</p>
  
  <pre><code>handler404 = 'path.to.view.Custom404.as_view'
  </code></pre>