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 %}Change Your Username{% endblock %}
{% block content %}
<h1>Change your username</h1>
<form action="{% url scipycon_username params.scope %}"
method="post">
<table class="scipycon-default">
<tr>
<td class="label">
<label for="id_username">New username:</label>
</td>
<td>
{{ form.username.errors }}
{{ form.username }}
</td>
</tr>
<tr>
<td></td>
<td>
<input class="button left"
type="submit"
value="Save username" />
</td>
</tr>
</table>
</form>
{% endblock %}