From 8c6d6c63460dd29e416887ccc55ad32768f9a4e4 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 1 Oct 2018 14:10:43 +0200 Subject: [PATCH] use a much simpler errorpage.html template, related to #356 #365 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. --- nsupdate/templates/errorpage.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/nsupdate/templates/errorpage.html b/nsupdate/templates/errorpage.html index 92f0da4..3a9a20f 100644 --- a/nsupdate/templates/errorpage.html +++ b/nsupdate/templates/errorpage.html @@ -1,10 +1,14 @@ -{% extends "base.html" %} -{% load i18n %}{% load bootstrap %} + + + + + {{ WWW_HOST }} - something went wrong... + + -{% block content %} -
- {% block error %} - {% endblock %} -
-{% endblock %} + {% block error %} + {% endblock %} + Back to {{ WWW_HOST }}. + +