changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
{% extends "base.html" %}{% block title %}404 Page Not Found{% endblock %}{% block content %}<h1>404 Page Not Found</h1><p>Are you sure you have the correct URL?</p>{% endblock content %}