Skip to content

Instantly share code, notes, and snippets.

@samehmohamed88
Created October 21, 2015 19:21
Show Gist options
  • Save samehmohamed88/2408e70755030aaf5c53 to your computer and use it in GitHub Desktop.
Save samehmohamed88/2408e70755030aaf5c53 to your computer and use it in GitHub Desktop.
Django table template
<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>
@rrjing85
Copy link

It helped! But this is the code in html, how to set the related code in view.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment