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

python - Read npy file directly from S3 StreamingBody -

python - Minimize function with Scipy minimize -

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