﻿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
5617	Default server_error view should render with RequestContext	Nick Fishman <kwlogical@…>	nobody	"Currently, the default server_error view in django.views.defaults renders using the following code:
{{{
return http.HttpResponseServerError(t.render(Context({})))
}}}

However, this prevents the context processors specified in SETTINGS.TEMPLATE_CONTEXT_PROCESSORS from being loaded. For example, if a base.html might include branding that includes the current date and time (which is passed in through a custom context processor). Currently, if we try to extend base.html in the 500.html template, we get an error because the context variable for the date and time isn't loaded.

The best solution seems to be similar to the way the page_not_found view renders:
{{{
return http.HttpResponseServerError(t.render(RequestContext(request)))
}}}

Although the page_not_found view also passes in a request_path variable to RequestContext, I'm not sure if this is necessary.
"	New feature	closed	Database layer (models, ORM)	dev	Release blocker	wontfix	server_error, RequestContext, error, templates	ionel.mc@…	Accepted	1	0	0	0	0	0
