Create proper template for 403 messages
authorMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 13:39:40 +0000 (14:39 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 13:44:21 +0000 (14:44 +0100)
commit7b954f41317e0a5e288e166ddec29e0583a6ff5c
tree212664a3f5ca329d5c54c7116b86be5f31554231
parentfebeaaad6905a112cb35f2faa585a028c0980b44
Create proper template for 403 messages

By using a real template, we both make permission denied messages look
better (properly rendered), and also makes it possible to tell the user
*why* access was denied.

This makes using PermissionDenied exceptions a lot more useful, so
update a number of places that were sending out access denied messages
as 404s.
postgresqleu/confreg/backendviews.py
postgresqleu/confreg/views.py
postgresqleu/confwiki/views.py
template/403.html [new file with mode: 0644]