mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06: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:
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'),
|
||||
)
|
||||
Reference in New Issue
Block a user