mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #5791 -- Added early-bailout support for views (ETags and Last-modified).
This provides support for views that can have their ETag and/or Last-modified values computed much more quickly than the view itself. Supports all HTTP verbs (not just GET). Documentation and tests need a little more fleshing out (I'm not happy with the documentation at the moment, since it's a bit backwards), but the functionality is correct. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -20,11 +20,11 @@ urlpatterns = patterns('',
|
||||
|
||||
# test urlconf for middleware tests
|
||||
(r'^middleware/', include('regressiontests.middleware.urls')),
|
||||
|
||||
|
||||
# admin view tests
|
||||
(r'^test_admin/', include('regressiontests.admin_views.urls')),
|
||||
(r'^generic_inline_admin/', include('regressiontests.generic_inline_admin.urls')),
|
||||
|
||||
|
||||
# admin widget tests
|
||||
(r'widget_admin/', include('regressiontests.admin_widgets.urls')),
|
||||
|
||||
@@ -32,4 +32,7 @@ urlpatterns = patterns('',
|
||||
|
||||
# test urlconf for syndication tests
|
||||
(r'^syndication/', include('regressiontests.syndication.urls')),
|
||||
|
||||
# conditional get views
|
||||
(r'condition/', include('regressiontests.conditional_processing.urls')),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user