html - Django language for dynamic fields -




<table class="table">            <tr>         {% item in summary.titles %}             <th>{{ item }}</th>         {% endfor %}     </tr>     <tr>         {% title in summary.titles %}             <td> {{ summary.data[title] }}</td>         {% endfor %}     </tr> </table> 

is possible data in similar way?

exception value:

could not parse remainder: '[title]' 'summary.data[title]'

var summary = {     data:{         title1: 1,         title2:2     },      titles: [title1, title2] } 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -