diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-06-22 16:28:40 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-06-22 16:28:40 +0000 |
| commit | 10229c4a1e8532e31310a6e2a74fe12ed2b3b26b (patch) | |
| tree | 6f8fdc3824fbeeb3c5c447c46e1f4a8208e2f5a3 | |
| parent | d8acac975ad42af05c320c4c7ccb2bfcdf1330d4 (diff) | |
Changed default 500 view NOT to use RequestContext, to lessen the chance 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
| -rw-r--r-- | django/views/defaults.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/defaults.py b/django/views/defaults.py index 773c02277e..8837dc4834 100644 --- a/django/views/defaults.py +++ b/django/views/defaults.py @@ -1,5 +1,5 @@ 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 @@ -86,4 +86,4 @@ def server_error(request, template_name='500.html'): Context: None """ t = loader.get_template(template_name) - return http.HttpResponseServerError(t.render(RequestContext(request))) + return http.HttpResponseServerError(t.render(Context({}))) |
