#18110: Improve template cache tag documentation
--------------------------------------+--------------------
Reporter: julianb | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: SVN
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
For me it was not clear that the fragment name cannot be a variable. I
just found out by wondering about errors and having a quick look into
Django's code. It should be made more clear that the second argument will
not be resolved even though ''all'' the others will be (even the cache
time gets resolved).
"It takes at least two arguments: the cache timeout, in seconds, and the
name to give the cache fragment. For example:"
should at least be something like
"It takes at least two arguments: the cache timeout, in seconds, and the
name to give the cache fragment. The name will be taken as is, do not use
a variable. For example:"
https://docs.djangoproject.com/en/dev/topics/cache/#template-fragment-
caching
--
Ticket URL: <https://code.djangoproject.com/ticket/18110>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.