Add error pages

This commit is contained in:
Frédéric Péters 2010-06-01 16:59:04 +02:00
parent b2d0729a04
commit d7fbfeac85
2 changed files with 24 additions and 0 deletions

12
templates/404.html Normal file
View File

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %} {% trans "Error: page not found" %} {% endblock %}
{% block content %}
<h2>{% trans "Error: page not found" %}</h2>
<p>{% trans "The page you requested has not been found on this server." %}
{% endblock %}

12
templates/500.html Normal file
View File

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %} {% trans "Error: server error (500)" %} {% endblock %}
{% block content %}
<h2>{% trans "Server Error" %}</h2>
<p>{% trans "We're sorry but a server error has occurred." %}
{% endblock %}