Ticket #6377: defaults.py.diff

File defaults.py.diff, 562 bytes (added by esaj, 8 years ago)
  • django/views/defaults.py

     
    8787    Context: None
    8888    """
    8989    t = loader.get_template(template_name) # You need to create a 500.html template.
    90     return http.HttpResponseServerError(t.render(Context({})))
     90    try:
     91        return http.HttpResponseServerError(t.render(RequestContext(request, {})))
     92    except:
     93        return http.HttpResponseServerError(t.render(Context({})))
     94
Back to Top