From 0da449be342d2024f3c87a065ed30da80c96bfa5 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Wed, 28 Aug 2019 16:54:24 +0100 Subject: [PATCH 1/1] Fix 404 renderer --- sommitrealweird/generic/views.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sommitrealweird/generic/views.py b/sommitrealweird/generic/views.py index 63d9ea1..8bed87d 100644 --- a/sommitrealweird/generic/views.py +++ b/sommitrealweird/generic/views.py @@ -4,11 +4,5 @@ from django.template import RequestContext, loader def render_404(request, template_name='404.html'): - t = loader.get_template(template_name) - return HttpResponseNotFound( \ - t.render(RequestContext(request, - { - 'request_path': request.path, - 'media_url' : MEDIA_URL, - } - ))) + c = {} + return render(request, '404.html', c, status=404) -- 2.39.5