From d384870307a7612fe6eb340aeabcdc543b61390e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 20 Jul 2005 00:50:37 +0000 Subject: [PATCH] Changed django.views.defaults to use template.Context instead of core.extensions.DjangoContext git-svn-id: http://code.djangoproject.com/svn/django/trunk@233 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/defaults.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/views/defaults.py b/django/views/defaults.py index 69574b41bf..7d362f18b2 100644 --- a/django/views/defaults.py +++ b/django/views/defaults.py @@ -1,6 +1,6 @@ from django.core import template_loader from django.core.exceptions import Http404, ObjectDoesNotExist -from django.core.extensions import DjangoContext as Context +from django.core.template import Context from django.models.core import sites from django.utils import httpwrappers @@ -57,7 +57,7 @@ def page_not_found(request): return httpwrappers.HttpResponseGone() return httpwrappers.HttpResponseRedirect(r.new_path) t = template_loader.get_template('404') - c = Context(request) + c = Context() return httpwrappers.HttpResponseNotFound(t.render(c)) def server_error(request): @@ -68,5 +68,5 @@ def server_error(request): Context: None """ t = template_loader.get_template('500') - c = Context(request) + c = Context() return httpwrappers.HttpResponseServerError(t.render(c))