changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages
{% extends "admin/base.html" %}
{% load i18n %}
{% block title %}{{ title }} | {% trans 'SciPy.in Administration' %}{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'SciPy.in Administration' %}</h1>
{% endblock %}
{% block nav-global %}{% endblock %}