Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored July 20, 2005

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/views/defaults.py
6  django/views/defaults.py
... ...
@@ -1,6 +1,6 @@
1 1
 from django.core import template_loader
2 2
 from django.core.exceptions import Http404, ObjectDoesNotExist
3  
-from django.core.extensions import DjangoContext as Context
  3
+from django.core.template import Context
4 4
 from django.models.core import sites
5 5
 from django.utils import httpwrappers
6 6
 
@@ -57,7 +57,7 @@ def page_not_found(request):
57 57
             return httpwrappers.HttpResponseGone()
58 58
         return httpwrappers.HttpResponseRedirect(r.new_path)
59 59
     t = template_loader.get_template('404')
60  
-    c = Context(request)
  60
+    c = Context()
61 61
     return httpwrappers.HttpResponseNotFound(t.render(c))
62 62
 
63 63
 def server_error(request):
@@ -68,5 +68,5 @@ def server_error(request):
68 68
     Context: None
69 69
     """
70 70
     t = template_loader.get_template('500')
71  
-    c = Context(request)
  71
+    c = Context()
72 72
     return httpwrappers.HttpResponseServerError(t.render(c))

0 notes on commit d384870

Please sign in to comment.
Something went wrong with that request. Please try again.