1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<html> <head> <title>Host list</title> </head> <body> <div id="host-list"> {% for host in host_list %} <div class="host"> <a href="{% url host-detail host.id %}">{{ host.name }}</a> </div> {% endfor %} </div> </body> </html>