Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit d384870307a7612fe6eb340aeabcdc543b61390e 1 parent 20820f2
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/views/defaults.py
View
6 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))
Please sign in to comment.
Something went wrong with that request. Please try again.