Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverted changeset [14356]

That fix for #14565 introduced test failures.  A better fix will
follow shortly.

Refs #14565

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 144ab8877f83017c1ff7395b78996790b3dbba02 1 parent 4d5b00b
@spookylukey spookylukey authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  django/views/defaults.py
View
3  django/views/defaults.py
@@ -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 @@ def page_not_found(request, template_name='404.html'):
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.
Please sign in to comment.
Something went wrong with that request. Please try again.