Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django HTTP 500 Error

I am creating a custom HTTP 500 error template. Why is it Django shows it when i raise an exception and not when I return HttpResponseServerError (I just get the default browser 500 error)? I find this behaviour strange...

like image 737
heri0n Avatar asked Feb 06 '13 14:02

heri0n


1 Answers

Have you tried with another browser ? Is your custom error page larger than 512 bytes ? It seems some browsers (including Chrome) replace errors page with their own when the server's answer is shorter than 512 bytes.

like image 123
niconoe Avatar answered Oct 13 '22 23:10

niconoe