{% extends "djohno/base.html" %} {% block content %} 500

You probably want to override the default 500 template, 500.html.

{% if not STATIC_URL %}

It looks like you’ve not got STATIC_URL defined in your 500.html. Consider adding:

      handler500 = 'djohno.views.server_error'
    

to your urls.py.

{% else %}

The good news is that you’re correctly setting up STATIC_URL in your 500.html templates, so you should be able to use it as normal in your error templates. Its current value is {{ STATIC_URL }}.

{% endif %} {% endblock %}