diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-03-25 16:15:58 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-03-25 16:15:58 +0000 |
commit | 80874887cc78010dac35e0abb7a7cff25f37c909 (patch) | |
tree | a38be8947addbaf90267a8993d73c1c3ed57f01b /core/views_other.py | |
parent | 8723d62addda7200e26bd20c6aafb1532d1f832c (diff) | |
download | troggle-80874887cc78010dac35e0abb7a7cff25f37c909.tar.gz troggle-80874887cc78010dac35e0abb7a7cff25f37c909.tar.bz2 troggle-80874887cc78010dac35e0abb7a7cff25f37c909.zip |
404 fix attempt
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) |