Skip to content

Commit

Permalink
Changed default 500 view NOT to use RequestContext, to lessen the cha…
Browse files Browse the repository at this point in the history
…nce that the 500 view would raise an error in itself

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3193 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jun 22, 2006
1 parent d8acac9 commit 10229c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/views/defaults.py
@@ -1,5 +1,5 @@
from django.core.exceptions import ObjectDoesNotExist 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.contenttypes.models import ContentType
from django.contrib.sites.models import Site from django.contrib.sites.models import Site
from django import http from django import http
Expand Down Expand Up @@ -86,4 +86,4 @@ def server_error(request, template_name='500.html'):
Context: None Context: None
""" """
t = loader.get_template(template_name) t = loader.get_template(template_name)
return http.HttpResponseServerError(t.render(RequestContext(request))) return http.HttpResponseServerError(t.render(Context({})))

0 comments on commit 10229c4

Please sign in to comment.