On Tue, 4 Jun 2013 17:44:36 +0100
"Daniele Procida" <dani...@vurt.org> wrote:

> What about my earlier suggestion that this be dealt with in Python, not in 
> templates - that the Python programmer decides, for a particular method (or 
> class, because I guess a class could have an expensive __init__()) whether 
> that thing should be re-evaluated more than once per request, or per context?

As an alternative to the explicit way, how about making the context dictionary 
memoizable, i.e. let Django cache each value's object transparently the first 
time it is retrieved?

Sebastian.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to