renamed a few variables in view and made corresponding changes in template
{% extends 'base.html' %}{% block title %}500 Error{% endblock %}{% block content %}<h2>500 Error.</h2>Internal server error. This incident will be reported.<br />Inconvenience caused is regretted.{% endblock %}