{% extends "base.html" %} {% block body %}

List of monsters

{% if page_obj.paginator.count == 0 %}

We have no monsters!

{% else %} {% block page-and-paging-controls %} {% for monster in page_obj %}

{{ monster.name }}

{% endfor %} {% if page_obj.has_next %}

Load more

{% else %}

That's all of them!

{% endif %} {% endblock %} {% endif %}

See also: create monsters page

{% endblock %}