diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2010-10-28 11:58:30 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2010-10-28 11:58:30 +0000 |
| commit | fcc283a52de2185787d5ae4b0a04164f2a1e8882 (patch) | |
| tree | 07fd5110a15af5ed8d119ff6bd6900b917d31db4 | |
| parent | 12652baca69cb263382cb4992155db224f44400e (diff) | |
[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
| -rw-r--r-- | django/views/defaults.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/views/defaults.py b/django/views/defaults.py index 08c49e0ca4..68b9ad697c 100644 --- a/django/views/defaults.py +++ b/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. |
