From: Matthijs Kooijman Date: Sun, 10 Feb 2008 15:59:26 +0000 (+0100) Subject: * Add 404 and 500 templates for displaying pretty page not found and server error... X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=b95c24676bc87413a8a83728a28b4975e1267459;p=matthijs%2Fprojects%2Fxerxes.git * Add 404 and 500 templates for displaying pretty page not found and server error messages in a non-debug system. --- diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..5a77c6a --- /dev/null +++ b/templates/404.html @@ -0,0 +1,13 @@ +{% extends "base/base.html" %} +{% load i18n %} +{% load encode_email %} + +{% block content %} +{% with "xerxes@evolution-events.nl" as email %} +

{% trans "Page not found" %}

+{% blocktrans with email|encode_string|safe as email %} +The page you requested could not be found. If you think this is an +error, please send an email. +{% endblocktrans %} +{% endwith %} +{% endblock %} diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..aa558e5 --- /dev/null +++ b/templates/500.html @@ -0,0 +1,13 @@ +{% extends "base/base.html" %} +{% load i18n %} +{% load encode_email %} + +{% block content %} +{% with "xerxes@evolution-events.nl" as email %} +

{% trans "Server error" %}

+{% blocktrans with email|encode_string|safe as email %} +There was an error processing your request. Please try again, or send +an email. +{% endblocktrans %} +{% endwith %} +{% endblock %}