diff options
author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-22 07:58:29 +0000 |
---|---|---|
committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-22 07:58:29 +0000 |
commit | b203db6ec850fee9ad8f2e2c8873be986325572b (patch) | |
tree | 349736a64d97e83f5817d79e7e12ad84973cdc0a /tests/urls.py | |
parent | 5ac154e06568b9815e85b32f144ab4ee10190a61 (diff) | |
download | django-b203db6ec850fee9ad8f2e2c8873be986325572b.tar.gz |
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
Diffstat (limited to 'tests/urls.py')
-rw-r--r-- | tests/urls.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/urls.py b/tests/urls.py index 43806de920..6704829231 100644 --- a/tests/urls.py +++ b/tests/urls.py @@ -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')), ) |