<table border="1" style="width: 100%">
{% for i in lista %}
<tr>
<td>{{ i }}</td>
{# <td> ----> Temp </td>#}
{# <td> {{ i }}</td>#}
</tr>
{% endfor %}
</table>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec4f230b-73f0-495c-ad2d-db921ed227cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{% for x, y in points %} There is a point at {{ x }},{{ y }} {% endfor %}
extracted from:
https://docs.djangoproject.com/en/1.7/ref/templates/builtins/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec4f230b-73f0-495c-ad2d-db921ed227cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What of:
<table border="1" style="width: 100%">
{% for i in lista %}
<tr>
{% for j in i %}
<td>{{ j }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/63004a1d-6aad-481b-9563-26182bbd9f39%40googlegroups.com.
#views
def tests(request):
acept = get_object_or_404(Modeltest, released=True)
context = {'keys': acept} # [1]
return render(request, 'temp_test.html', context)
#template
{% for key in keys %} # [1]
{{key.title}}
{{key.name}}
{{key.number}}
{{key.etc}}
{% endfor %}