title: Creating custom 404 page in django is causing problems loading javascript files
body: <p>I am handling 404 error using a custom &quot;not found page&quot;. But doing that is causing that from that moment the templates are nou loading all the javascripts files and plugins. This is my code</p>
  <p>in urls.py</p>
  <pre><code>handler404 = 'riesgo.views.views.error_404'
  </code></pre>
  <p>in views/views.py</p>
  <pre><code>def error_404(request, exception):
      data = {}
      return  render(request, '404.html', data)
  </code></pre>
  <p>I check the log and loading all js files is causing a 404 error</p>