Ticket #2773: 2773.patch

File 2773.patch, 423 bytes (added by afternoon@…, 18 years ago)

Patch to modify django.views.defaults.server_error to pass RequestContext to Template.render()

  • django/views/defaults.py

     
    8686    Context: None
    8787    """
    8888    t = loader.get_template(template_name)
    89     return http.HttpResponseServerError(t.render(Context({})))
     89    return http.HttpResponseServerError(t.render(RequestContext(request, {})))
Back to Top