{% if page_obj.has_previous %} « first < previous {% endif %} Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}. {% if page_obj.has_next %} next > last » {% endif %}