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))