I am an experienced developer but new to web development, Python, and Django. Point me to a good book if you think this is too basic for this group.
I coded a template that lists a bunch of items. Each item has a price. In the template, I want to include the sum of all the prices on a TOTAL line at the bottom. What's the typical django way to do that? Here's my guess. Have the template call another function view_total() which gets the same object_list again and spins through the object_list to tally a total, and view_total() returns a single object which is a total. Pointers to sample code that does something like that? Or a book... Thanks, Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.