~netlandish/django-wiki

59567e336bc7481319cf948e68e17bd997520d24 — benjaoming 11 years ago 9664ce1
Error pages for test project
2 files changed, 34 insertions(+), 0 deletions(-)

A testproject/testproject/templates/404.html
A testproject/testproject/templates/500.html
A testproject/testproject/templates/404.html => testproject/testproject/templates/404.html +17 -0
@@ 0,0 1,17 @@
{% extends "wiki/base.html" %}
{% load wiki_tags i18n %}
{% load url from future %}

{% block pagetitle %}{% trans "404" %}{% endblock %}

{% block wiki_breadcrumbs %}{% endblock %}

{% block wiki_contents %}

<h1 class="page-header">{% trans "404 - it's not here!" %}</h1>

<div class="error">
  <p>{% trans "Sorry, keep looking. Good luck!" %}</p>
</div>

{% endblock %}

A testproject/testproject/templates/500.html => testproject/testproject/templates/500.html +17 -0
@@ 0,0 1,17 @@
{% extends "wiki/base.html" %}
{% load wiki_tags i18n %}
{% load url from future %}

{% block pagetitle %}{% trans "500 Server err" %}{% endblock %}

{% block wiki_breadcrumbs %}{% endblock %}

{% block wiki_contents %}

<h1 class="page-header">{% trans "500 - ERROR" %}</h1>

<div class="error">
  <p>{% trans "Oh god no the demo has failed. Please rest asured that an open source developer is the logs to resolve this, because it's fun!!" %}</p>
</div>

{% endblock %}