Hi, Yes you can create your view function with a custom template. Or you could just create a template tag that takes an order and do all that for you.
lzantal On Feb 7, 2011, at 16:34, Tres Finocchiaro <[email protected]> wrote: > Hi, > > I'd like to use the django templates to perform a very simple task... > sum all of the amount of items to be shipped (for customs/ > international weight/value purposes). > > From my research on templates, this isn't do-able template-side. > > From reading the orders class, I can get items in an order, and > quantity in an item, but not the product of the two. I don't see a > built-in function that has this property. > > Internet searches suggest creating a view that can be accessible from > the template, but this is all a bit foreign to me. I've read the > basics on views, but I still don't know where to start. > > I'm an career developer, but new to python and even newer to django. > > Please help! > > -Tres > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo 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/satchmo-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Satchmo 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/satchmo-users?hl=en.
