1
0
Fork 0

add handler for 403s

fixes #3104
This commit is contained in:
Hugh Rundle 2023-11-18 12:36:03 +11:00
parent 06568aab88
commit d620bd7350
No known key found for this signature in database
GPG key ID: A7E35779918253F9
5 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,8 @@
"""custom 403 handler to enable context processors"""
from django.template.response import TemplateResponse
def permission_required(request, exception): # pylint: disable=unused-argument
"""permission denied page"""
return TemplateResponse(request, "403.html")