I am writing a template for my first django website.
I am passing a list of dictionaries to the template in a variable. I also need to pass a few other lists which h
You use the dot-operator to index the array, or, really, to do anything.
Technically, when the template system encounters a dot, it tries the following lookups, in this order:
* Dictionary lookup * Attribute lookup * Method call * List-index lookup
I don't believe you can do math on the index. You'll have to pass in your array constructed in some other way so that you don't have to do this subtraction.