mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #15083 -- Corrected the order of TemplateResponse middleware handling, ensuring that custom URLConfs are valid, and that ResponseMiddleware is invoked if the TemplateResponseMiddleware causes errors. Thanks to Sayane for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4d654c92ce
commit
f89f1c8acb
6 changed files with 59 additions and 11 deletions
|
@ -1,4 +1,7 @@
|
|||
# Fake views for testing url reverse lookup
|
||||
from django.http import HttpResponse
|
||||
from django.template.response import TemplateResponse
|
||||
|
||||
|
||||
def index(request):
|
||||
pass
|
||||
|
@ -11,3 +14,9 @@ def client_action(request, id, action):
|
|||
|
||||
def client2(request, tag):
|
||||
pass
|
||||
|
||||
def template_response_view(request):
|
||||
return TemplateResponse(request, 'response.html', {})
|
||||
|
||||
def snark(request):
|
||||
return HttpResponse('Found him!')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue