From 7a757a0ef73d4dfd87ada1aa1b9d34980fe0db81 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 9 Oct 2017 12:22:50 +0200 Subject: [PATCH] made exceptions templates independent from layout.jinja2 this resolves a case, where the exception view tries to access the unbound request.user object --- ordr2/templates/errors/exception.jinja2 | 53 +++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/ordr2/templates/errors/exception.jinja2 b/ordr2/templates/errors/exception.jinja2 index ed45303..6c89fc1 100644 --- a/ordr2/templates/errors/exception.jinja2 +++ b/ordr2/templates/errors/exception.jinja2 @@ -1,8 +1,36 @@ -{% extends "ordr2:templates/layout.jinja2" %} + + + + -{% block subtitle %} Whoops! {% endblock subtitle %} + Ordr | Whoops! + + + + + + + + + + + + + + + + -{% block content %}
@@ -17,4 +45,21 @@
-{% endblock content %} + + + + + + + + + + + +