Skip to content

Commit fcc283a

Browse files
committed
[1.2.X] Reverted changeset [14356]
That fix for #14565 introduced test failures. A better fix will follow shortly. Refs #14565 Backport of [14376] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 12652ba commit fcc283a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

django/views/defaults.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from django import http
22
from django.template import Context, RequestContext, loader
3-
from django.views.decorators.csrf import csrf_protect
43

5-
@csrf_protect
64
def page_not_found(request, template_name='404.html'):
75
"""
86
Default 404 handler.
@@ -15,7 +13,6 @@ def page_not_found(request, template_name='404.html'):
1513
t = loader.get_template(template_name) # You need to create a 404.html template.
1614
return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))
1715

18-
@csrf_protect
1916
def server_error(request, template_name='500.html'):
2017
"""
2118
500 error handler.

0 commit comments

Comments
 (0)