From 2323263ccb3199294f75eefb9032334b4edb2ded Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Sun, 14 Jan 2024 13:52:59 +0100 Subject: [PATCH] fix: wrong static template tag usage --- templates/400.html | 75 +++----------------------------- templates/403.html | 80 +++------------------------------- templates/404.html | 70 +++--------------------------- templates/500.html | 77 ++------------------------------- templates/error_template.html | 81 +++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+), 282 deletions(-) create mode 100644 templates/error_template.html diff --git a/templates/400.html b/templates/400.html index b4c0319..b8b20c9 100644 --- a/templates/400.html +++ b/templates/400.html @@ -1,70 +1,5 @@ -{% load static %} - - - - -
-
400
-
Invalid request_
-
- +{% extends "error_template.html" %} +{% block content %} +
400
+
Invalid request_
+{% endblock %} diff --git a/templates/403.html b/templates/403.html index e5afaf1..e308274 100644 --- a/templates/403.html +++ b/templates/403.html @@ -1,75 +1,7 @@ -{% load static %} +{% extends "error_template.html" %} - - - -
-
403
-
Forbidden_
-
Login
-
- +{% block content %} +
403
+
Forbidden_
+
Login
+{% endblock %} diff --git a/templates/404.html b/templates/404.html index b156143..b117208 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,68 +1,8 @@ - - - -
-
404
-
Not found_
-
- diff --git a/templates/500.html b/templates/500.html index 7dc6b35..d3994cb 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,77 +1,8 @@ -{% load static %} +{% extends "error_template.html" %} - - - -
+{% block content %}
500
Something went wrong..._
-
+{% endblock %} + - diff --git a/templates/error_template.html b/templates/error_template.html new file mode 100644 index 0000000..44d3aea --- /dev/null +++ b/templates/error_template.html @@ -0,0 +1,81 @@ +{% load static %} + + + + +
+ {% block content %} +
MISSING_ERROR_CODE
+
+ MISSING ERROR DESCRIPTION _ +
+ {% endblock %} +
+