diff options
Diffstat (limited to 'core/views_other.py')
-rw-r--r-- | core/views_other.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/views_other.py b/core/views_other.py index cc8fe3a..0944d55 100644 --- a/core/views_other.py +++ b/core/views_other.py @@ -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) |