def server_error(request, template_name='500.html'):
 r = render_to_response(template_name, context_instance=RequestContext(request))
 r.status_code = 500
 return r

def server_error ( request , template_name = '500.html' ) : r = render_to_response ( template_name , context_instance = RequestContext ( request ) ) r . status_code = 500 return r
a simple 500 handler so we get media .