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" %}
{% load i18n %}
{% block content %}
<div class="post">
<div class="title"><h2>{% trans "Register" %}</h2></div>
<div id="search">
<style type="text/css">
ul.errorlist {
margin: 0;
padding: 0;
}
.errorlist li {
color: red;
display: block;
font-size: 10px;
margin: 0 1 3px;
padding: 0px 45px;
}
</style>
<table>
Your account has been activated and registration procedure is complete.
You can login to your account now.
</table>
<script type="text/javascript">
document.getElementById('id_username').focus();
</script>
</div>
{% endblock %}