Custom templates to correctly display 404 and 500 errors.

see #356
This commit is contained in:
Antoine Nguyen
2013-01-10 19:44:29 +01:00
parent f7a75b49bb
commit b424d877aa
3 changed files with 30 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
{% extends "layout_simple.html" %}{% load i18n %}
{% block content %}
<p class="well">{% trans "The requested page does not exist." %}</p>
{% endblock %}
+4
View File
@@ -0,0 +1,4 @@
{% extends "layout_simple.html" %}{% load i18n %}
{% block content %}
<p class="well">{% trans "An internal error occured." %}</p>
{% endblock %}
+22
View File
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE }}">
<head>
<meta charset="utf-8" />
<title>{% block pagetitle %}{% endblock %}</title>
<link rel="icon" type="image/png" href="{{ STATIC_URL }}css/logo-icon.png" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/bootstrap-responsive.css" />
<script src="{{ STATIC_URL }}js/bootstrap.js" type="text/javascript"></script>
<script src="{{ STATIC_URL }}js/bootstrap-datepicker.js" type="text/javascript"></script>
{% url django.views.i18n.javascript_catalog as catalog_url %}
<script type="text/javascript" src="{{ catalog_url }}"></script>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
{% block content %}{% endblock %}
</div>
</div>
</body>
</html>