Am Donnerstag, 21. November 2013 18:53:00 UTC+1 schrieb Pepsodent Cola:
>
> 1.)
> I managed to make my View calculate my variables but I'm getting the same 
> result *"0.6"* for each forloop.
> What am I doing wrong with my variables calculation?
>

You are passing only a *single* value for *publicists_coverage *to the 
template - why do you expect to get a different value on each loop?

Currently there is no built-in way to do more than simple calculations via 
the "add" filter in templates, but you can easily create your own filters:

http://stackoverflow.com/questions/5848967/django-how-to-do-caculation-inside-the-template-html-page

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a6d8122-8367-44aa-bcd2-3c895145dad1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to