Re: Iterating over 2 arrays or 1 record array in Django

2015-10-23 Thread C. Kirby
When you have duplicate keys in a python dict only the second gets saved. You can also refer to positions in tuples with . notation in templates. So something like: Python code: import numpy as npfrom django.template import Template, Context, loaderfrom django.conf import settings dtype={

Iterating over 2 arrays or 1 record array in Django

2015-10-22 Thread Juan Pablo Rivera
I have a numpy record array with 2 values per slot in the array.The name and offset, I want to display both of these values side by side using a Django template. Python code import numpy as npfrom django.template import Template, Context, loaderfrom django.conf import settings dtype={ '