From 88c51a6bd76ef8fbeb33693feb25fc4731f37c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Szulc?= Date: Wed, 9 Oct 2024 13:18:42 +0200 Subject: [PATCH] Fix loader and page_not_found --- src/ralph/lib/error_pages/views.py | 2 +- src/ralph/lib/template/loaders.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ralph/lib/error_pages/views.py b/src/ralph/lib/error_pages/views.py index 55a914804e..2a31d0dc7a 100644 --- a/src/ralph/lib/error_pages/views.py +++ b/src/ralph/lib/error_pages/views.py @@ -4,7 +4,7 @@ @requires_csrf_token -def page_not_found(request): +def page_not_found(request, *args, **kwargs): header = _('Not Found') paragraph = _('The requested resource was not found on this server.') body = "

{}

{}

".format(header, paragraph) diff --git a/src/ralph/lib/template/loaders.py b/src/ralph/lib/template/loaders.py index 6290aadd1c..38ae3233bc 100644 --- a/src/ralph/lib/template/loaders.py +++ b/src/ralph/lib/template/loaders.py @@ -4,10 +4,10 @@ from django.apps import apps from django.template import Origin from django.template.loader import TemplateDoesNotExist -from django.template.loaders.base import Loader as BaseLoader +from django.template.loaders.filesystem import Loader -class AppTemplateLoader(BaseLoader): +class AppTemplateLoader(Loader): """ Template loader which allow to specify application label from which template should be used (for example when extending).