Home > front end >  Questions about the data automatically generated HTML form, to ask for help!
Questions about the data automatically generated HTML form, to ask for help!

Time:05-03

My program is python (djagno) + HTML

Backend calculated a lot of data about such a result list (python)

[(1, 39, '20000', '20000', '32000', '16478', '-'),
(2, 40, '0', '20000', '32000', '17373', '5.43%'),
(3, 41, '0', '20000', '32000', '18317', '5.43%'),
(4, 42, '0', '20000', '28000', '19317', '5.46%'),
(43, 5 '0', '20000', '28000', '20371', '5.46%'),
(6, 44, '0', '20000', '28000', '21484', '5.46%'),
(7, 45, '0', '20000', '28000', '22659', '5.47%')]

Need this data to automatically generate the HTML table

Hope that the format of the


At present is to transmit data through the following ways:

{% for I data in %}

{% endfor %}

The results as above, not intuitive and ugly

Old, please give advice, best can write a case, thanked here!




  • Related