Ticket #5617: server_error.patch

File server_error.patch, 579 bytes (added by Nick Fishman <kwlogical@…>, 17 years ago)

Patch to render with RequestContext

  • home/bsdlogical/docs/workspace/django/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    return http.HttpResponseServerError(t.render(RequestContext(request)))
Back to Top