I am using Django 1.8.2 and I am having some trouble figuring out how to iterate over this complex dictionary. I am trying to pass this information onto my template and display the information.
context = {'name': 'John', 'inventory': '[{"hardware": "Desktop", "brand": "HP"}, {"hardware": "Server" "brand": "Dell"}]'}
Any ideas? Much appreciated.
In your template :
And read this documentation: https://docs.djangoproject.com/en/1.8/topics/templates/