Hi,
I have a master template which defines two blocks:
{% block account %}{% endblock %}
{% block content %}{% endblock %}
I have a templatetag which tells me the time of the last image upload
(it's a photo sharing site).
This templatetag hits the database, and I don't want to call it
multiple times in the same page.
The problem is that if I do:
{% get_last_upload as last_upload %}
I cannot access the variable 'last_upload' from the two blocks. I have
to call the the templatetag twice, one in each block.
Is there a way to share variables between blocks?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en.