template for 404 and 500 errors

This commit is contained in:
Tom Giannattasio
2012-10-11 09:33:39 -04:00
parent 5eb0ca69e0
commit 782e5f51e9
4 changed files with 70 additions and 1 deletions

23
cms/templates/error.html Normal file
View File

@@ -0,0 +1,23 @@
<%inherit file="base.html" />
<%! from django.core.urlresolvers import reverse %>
<%block name="bodyclass">error</%block>
<%block name="title">
% if error == '404':
404 - Page Not Found
% elif error == '500':
500 - Internal Server Error
% endif
</%block>
<%block name="content">
<article class="error-prompt">
% if error == '404':
<h1>Hmm…</h1>
<p class="description">we can't find that page.</p>
% elif error == '500':
<h1>Oops…</h1>
<p class="description">there was a problem with the server.</p>
% endif
<a href="/" class="back-button">Back to dashboard</a>
</article>
</%block>