From: Brett Parker Date: Wed, 28 Aug 2019 15:59:52 +0000 (+0000) Subject: Fix 404 rendering X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/commitdiff_plain/4c8cb8b77590e3bbccb1fdf8dc05094b683a5a14?hp=0da449be342d2024f3c87a065ed30da80c96bfa5 Fix 404 rendering --- diff --git a/sommitrealweird/generic/views.py b/sommitrealweird/generic/views.py index 8bed87d..1622617 100644 --- a/sommitrealweird/generic/views.py +++ b/sommitrealweird/generic/views.py @@ -1,7 +1,5 @@ from settings import MEDIA_URL -from django.http import HttpResponseNotFound -from django.template import RequestContext, loader - +from django.shortcuts import render def render_404(request, template_name='404.html'): c = {}