the normal base template does quite a lot of stuff and the context / session needs to be prepared for that. in case of errors, we do not want to do any heavy stuff, like accessing the db / session.
This commit is contained in:
parent
04dcbc8662
commit
8c6d6c6346
@ -1,10 +1,14 @@
|
|||||||
{% extends "base.html" %}
|
<!DOCTYPE html>
|
||||||
{% load i18n %}{% load bootstrap %}
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>{{ WWW_HOST }} - something went wrong...</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="row">
|
|
||||||
{% block error %}
|
{% block error %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
<a href="{% url 'home' %}">Back to {{ WWW_HOST }}.</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user