Fixes error pages
This commit is contained in:
parent
e86f160c53
commit
28f07f7729
5 changed files with 2 additions and 16 deletions
|
@ -1,12 +0,0 @@
|
|||
""" something has gone amiss """
|
||||
from django.template.response import TemplateResponse
|
||||
|
||||
|
||||
def server_error_page(request):
|
||||
""" 500 errors """
|
||||
return TemplateResponse(request, "error.html", status=500)
|
||||
|
||||
|
||||
def not_found_page(request, _):
|
||||
""" 404s """
|
||||
return TemplateResponse(request, "notfound.html", status=404)
|
Loading…
Add table
Add a link
Reference in a new issue