render error pages using base template

This commit is contained in:
Thomas Waldmann 2015-02-08 19:38:01 +01:00
parent dd11a45108
commit 19f0d76c2a
5 changed files with 29 additions and 5 deletions

View File

@ -1,4 +1,7 @@
{% extends "errorpage.html" %}
{% block error %}
<h1>400 Bad Request</h1>
This kind of request is not allowed.
This kind of request is not allowed here.
{% endblock %}

View File

@ -1,5 +1,9 @@
{% extends "errorpage.html" %}
{% block error %}
<h1>403 Forbidden</h1>
Sorry, this is not allowed (for you).
If you did not login yet, try logging in.
If you did not log in yet, try logging in.
{% endblock %}

View File

@ -1,4 +1,7 @@
{% extends "errorpage.html" %}
{% block error %}
<h1>404 Not found</h1>
Nothing to see here.
{% endblock %}

View File

@ -1,3 +1,7 @@
{% extends "errorpage.html" %}
{% block error %}
<h1>500 Internal Server Error</h1>
Sorry :( we screwed up.
Sorry, we screwed up. Try again later. :(
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% load i18n %}{% load bootstrap %}
{% block content %}
<div class="row">
{% block error %}
{% endblock %}
</div>
{% endblock %}