id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 20822 "Content type of default error pages should be always ""text/html""" lvella anonymous "I have in my settings.py: DEFAULT_CONTENT_TYPE = 'application/xhtml+xml' And every view defined in the project conforms to the that. For instance, I have defined a custom 404 error page, and there is no issue, because I wrote it as valid XHTML. The problem is that the default error pages that comes in Django are, too, being served with the content type I choose in my settings. The simple default error 500 page content ""

Server Error (500)

"" is being server as XHTML, what is obviously wrong and fails to render in the browsers. Default error pages should use specific content type for what it its, in this case, text/html, for the case the default content type has been overridden." Bug closed HTTP handling 1.5 Normal fixed timograham@… Ready for checkin 1 0 0 0 1 0