Created
October 21, 2015 19:21
-
-
Save samehmohamed88/2408e70755030aaf5c53 to your computer and use it in GitHub Desktop.
Django table template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tr> | |
<td>First Name</td> | |
<td>Last Name</td> | |
</tr> | |
{% for student in students%} | |
<tr> | |
<td>{{student.first_name}}</td> | |
<td>{{student.last_name}}</td> | |
</tr> | |
{%endfor%} | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It helped! But this is the code in html, how to set the related code in view.py?