From b95c24676bc87413a8a83728a28b4975e1267459 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sun, 10 Feb 2008 16:59:26 +0100 Subject: [PATCH] * Add 404 and 500 templates for displaying pretty page not found and server error messages in a non-debug system. --- templates/404.html | 13 +++++++++++++ templates/500.html | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/500.html 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 %} -- 2.30.2