Skip to content

Commit

Permalink
Fix loader and page_not_found
Browse files Browse the repository at this point in the history
  • Loading branch information
hipek8 committed Oct 9, 2024
1 parent 1798517 commit 88c51a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ralph/lib/error_pages/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<h1>{}</h1><p>{}</p>".format(header, paragraph)
Expand Down
4 changes: 2 additions & 2 deletions src/ralph/lib/template/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 88c51a6

Please sign in to comment.