I am starting to learn django. I want to create a directory site. I want it to be: home page -> list of States -> List of Restaurant Types -> List of Restaurant names I have ‘list of States’ as a generic.ListView and it works perfect. I tried making ‘List of Restaurant Types’ as a ListView as well but it
Tag: detailview
Is it possible to add values to context into a for loop?
I have a for loop to iterate a list. In every iteration i have a different value, and i want to add this value to my context. I’m trying using context.update, but every time this returns an empty context. cCard returns correct data. The only thing I need is to store what come from cCard to context[‘card_list’], but evert attempt