Moves titles into templates and adds i18n support
This commit is contained in:
@@ -3,11 +3,9 @@ from django.template.response import TemplateResponse
|
||||
|
||||
def server_error_page(request):
|
||||
''' 500 errors '''
|
||||
return TemplateResponse(
|
||||
request, 'error.html', {'title': 'Oops!'}, status=500)
|
||||
return TemplateResponse(request, 'error.html', status=500)
|
||||
|
||||
|
||||
def not_found_page(request, _):
|
||||
''' 404s '''
|
||||
return TemplateResponse(
|
||||
request, 'notfound.html', {'title': 'Not found'}, status=404)
|
||||
return TemplateResponse(request, 'notfound.html', status=404)
|
||||
|
Reference in New Issue
Block a user