forked from expo/troggle
404 fix attempt
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user