tidy render() calls

This commit is contained in:
Philip Sargent
2021-03-28 03:48:24 +01:00
parent a4c892b696
commit a99020078c
5 changed files with 8 additions and 11 deletions

View File

@@ -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)