Add error templates
authorMagnus Hagander <magnus@hagander.net>
Wed, 16 Jan 2013 13:16:55 +0000 (14:16 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 16 Jan 2013 13:16:55 +0000 (14:16 +0100)
Shows some nicer messages when there is a 404 or internal server error

django/archives/mailarchives/templates/404.html [new file with mode: 0644]
django/archives/mailarchives/templates/500.html [new file with mode: 0644]

diff --git a/django/archives/mailarchives/templates/404.html b/django/archives/mailarchives/templates/404.html
new file mode 100644 (file)
index 0000000..7cc5b94
--- /dev/null
@@ -0,0 +1,9 @@
+{%extends "base.html"%}
+{%block title%}Not found{%endblock%}
+{%block contents%}
+<h1>Not Found</h1>
+
+<p>
+The requested page was not found.
+</p>
+{%endblock%}
diff --git a/django/archives/mailarchives/templates/500.html b/django/archives/mailarchives/templates/500.html
new file mode 100644 (file)
index 0000000..4904ef7
--- /dev/null
@@ -0,0 +1,9 @@
+{%extends "base.html"%}
+{%block title%}Server error{%endblock%}
+{%block contents%}
+<h1>Server Error</h1>
+<p>
+An internal server error occurred.
+</p>
+</h1>
+{%endblock%}