mirror of https://github.com/django/django.git
Removed a redundant line from the cache_page docs
The code example clearly includes the import, no need to mention it twice. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16523 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b2050ff546
commit
ce89ebe1f0
|
@ -574,9 +574,6 @@ Here's the same thing, with ``my_view`` wrapped in ``cache_page``::
|
||||||
(r'^foo/(\d{1,2})/$', cache_page(60 * 15)(my_view)),
|
(r'^foo/(\d{1,2})/$', cache_page(60 * 15)(my_view)),
|
||||||
)
|
)
|
||||||
|
|
||||||
If you take this approach, don't forget to import ``cache_page`` within your
|
|
||||||
URLconf.
|
|
||||||
|
|
||||||
Template fragment caching
|
Template fragment caching
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue