From 44e41a72d3cdcff34c81b716053d01adb52976ee Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 7 Apr 2022 11:39:37 +0100 Subject: [PATCH] Add note about use of template tags in 500.html --- wagtail/project_template/project_name/templates/500.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wagtail/project_template/project_name/templates/500.html b/wagtail/project_template/project_name/templates/500.html index 77379e5588..62ffeb63fe 100644 --- a/wagtail/project_template/project_name/templates/500.html +++ b/wagtail/project_template/project_name/templates/500.html @@ -1,4 +1,11 @@ - +{% comment %} +This error template is intentionally left as static HTML to ensure that it is still renderable even +during system-wide failures such as a missing database. + +Any Django template tags here - including this comment - will be processed at the point of cloning +the project template with `wagtail start`, and not during page rendering (unless escaped with +'templatetag'). +{% endcomment %}