From: Brett Parker Date: Wed, 28 Aug 2019 15:54:24 +0000 (+0100) Subject: Fix 404 renderer X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/0da449be342d2024f3c87a065ed30da80c96bfa5?ds=sidebyside Fix 404 renderer --- 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)