Author: lukeplant
Date: 2010-10-28 06:46:57 -0500 (Thu, 28 Oct 2010)
New Revision: 14376
Modified:
django/trunk/django/views/defaults.py
Log:
Reverted changeset [14356]
That fix for #14565 introduced test failures. A better fix will
follow shortly.
Refs #14565
Modified: django/trunk/django/views/defaults.py
===================================================================
--- django/trunk/django/views/defaults.py 2010-10-28 02:59:22 UTC (rev
14375)
+++ django/trunk/django/views/defaults.py 2010-10-28 11:46:57 UTC (rev
14376)
@@ -1,8 +1,6 @@
from django import http
from django.template import Context, RequestContext, loader
-from django.views.decorators.csrf import csrf_protect
-...@csrf_protect
def page_not_found(request, template_name='404.html'):
"""
Default 404 handler.
@@ -15,7 +13,6 @@
t = loader.get_template(template_name) # You need to create a 404.html
template.
return http.HttpResponseNotFound(t.render(RequestContext(request,
{'request_path': request.path})))
-...@csrf_protect
def server_error(request, template_name='500.html'):
"""
500 error handler.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.