From a99020078cc7a57f21f5b8934e6d78e7d1c77f4b Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 28 Mar 2021 03:48:24 +0100 Subject: tidy render() calls --- core/views_other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views_other.py') diff --git a/core/views_other.py b/core/views_other.py index 67726cc..0b3e6c3 100644 --- a/core/views_other.py +++ b/core/views_other.py @@ -29,7 +29,7 @@ def troggle404(request): # cannot get this to work. Handler404 in urls.py not ri ''' context = RequestContext(request) #context['caves'] = Cave.objects.all() - return render_to_response('404.html', context.flatten()) + return render(request, ('404.html', context.flatten())) def showrequest(request): return HttpResponse(request.GET) -- cgit v1.2.3