mirror of
https://github.com/django/django.git
synced 2025-11-03 21:25:09 +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
11
tests/regressiontests/templates/alternate_urls.py
Normal file
11
tests/regressiontests/templates/alternate_urls.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# coding: utf-8
|
||||
from django.conf.urls.defaults import *
|
||||
from regressiontests.templates import views
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# View returning a template response
|
||||
(r'^template_response_view/', views.template_response_view),
|
||||
|
||||
# A view that can be hard to find...
|
||||
url(r'^snark/', views.snark, name='snark'),
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue