The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Fix error views so they return the correct HTTP status

master
Gergely Polonkai 8 years ago
parent 06fb6b3a09
commit f98017e70e
  1. 12
      basics/views.py

@ -15,13 +15,17 @@ def disclaimer(request):
return render(request, 'basics/disclaimer.html', {})
def notfound(request):
return render(request, 'basics/notfound.html', {})
body = render_to_string('basics/notfound.html', {})
return HttpResponse(body, status_code = 404)
def serverror(request):
return render(request, 'basics/serverror.html', {})
body = render_to_string('basics/serverror.html', {})
return HttpResponse(body, status_code = 500)
def forbidden(request):
return render(request, 'basics/forbidden.html', {})
body = render_to_string('basics/forbidden.html', {})
return HttpResponse(body, status_code = 403)
def badrequest(request):
return render(request, 'basics/badrequest.html', {})
body = render_to_string('basics/badrequest.html', {})
return HttpResponse(body, status_code = 400)

Loading…
Cancel
Save