{% load pagination %} {% if page_obj.has_other_pages %}

{% if page_obj.has_previous %} {% endif %} Page {{page_obj.number}} of {{paginator.num_pages}} {% if page_obj.has_next %} {% endif %}

{% endif %}