Currently I am passing a dictionary with multiple keys from my views to django template, and the first key contains a list with all the wanted keys, and I want to have a nested loop to loop inside the first key so I can access inside the wanted keys.
dict = {
"list1" = ["name1", "name5"]
"name1" = []
"name2" = []
"name3" = []
"name5" = []
}
In this case, I only want to access dict['name1'] and dict['name5'], in Python I can do something like:
for name in dict['list1']:
for l in dict[name]:
do things
I want to know if I can do the same with django template inside html file