mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-13 20:31:00 +00:00
12 lines
324 B
Python
12 lines
324 B
Python
""" 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)
|