1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #14588 -- Corrected r14393 to ensure that response middlewares are are always applied. Includes a battery of tests to validate the expected behavior of the middleware cycle. Thanks to Petr Marhoun for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2010-10-30 07:19:04 +00:00
parent 20e09ca817
commit 52e0bcbc62
5 changed files with 726 additions and 60 deletions

View File

@@ -1,4 +1,17 @@
from django import http
from django.core.exceptions import PermissionDenied
def index(request):
return http.HttpResponse('')
def normal_view(request):
return http.HttpResponse('OK')
def not_found(request):
raise http.Http404()
def server_error(request):
raise Exception('Error in view')
def null_view(request):
return None
def permission_denied(request):
raise PermissionDenied()