404 fix attempt

This commit is contained in:
Philip Sargent
2021-03-25 16:15:58 +00:00
parent 8723d62add
commit 80874887cc
4 changed files with 36 additions and 1 deletions

View File

@@ -23,6 +23,14 @@ Also has code to download a logbook in a choice of formats (why?!) and to
download all QMs (not working)
"""
def troggle404(request): # cannot get this to work. Handler404 in urls.py not right syntax
'''Custom 404 page to be used even when Debug=True
https://blog.juanwolf.fr/posts/programming/how-to-create-404-page-django/
'''
context = RequestContext(request)
#context['caves'] = Cave.objects.all()
return render_to_response('404.html', context.flatten())
def showrequest(request):
return HttpResponse(request.GET)