python - the django template and combine {{ }} -


I start with the dingo, and I have a little problem.

OK, I have a toplele on top) and I wanted to display it according to any other template value (date, which is a datetime type).

So, I did this:

  {{top.date.day}}  

does not work well, so I Tried to do this:

  {{top. {{Date.day  

And it does not work either.

So what's the best way to do it?

Thank you.

{% with%} to assign the intermediate value to another reference Use the first variable in the tag


Comments