1

I have passed to template dictionary parameters like

parameters={ 'value':'some_value', 'style':{} } 

and inside template I need to read some_value

src="{{value['value']}}" 

How to read that value, because I try like above but I got error Could not parse the remainder ?

1 Answer 1

4

Django templates use the syntax {{ dictvar.key }} to perform lookups, see the Django Docs. So in your case, this would be {{ value.value }}

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.