Commits

Anonymous committed c21a6c7

Changed default 500 view NOT to use RequestContext, to lessen the chance that the 500 view would raise an error in itself

  • Participants
  • Parent commits 96ac848

Comments (0)

Files changed (1)

File django/views/defaults.py

 from django.core.exceptions import ObjectDoesNotExist
-from django.template import RequestContext, loader
+from django.template import Context, RequestContext, loader
 from django.contrib.contenttypes.models import ContentType
 from django.contrib.sites.models import Site
 from django import http
     Context: None
     """
     t = loader.get_template(template_name)
-    return http.HttpResponseServerError(t.render(RequestContext(request)))
+    return http.HttpResponseServerError(t.render(Context({})))