To start {% if page_obj.has_previous %} <<-- {% endif %} {% if page_obj.has_next %} -->> {% endif %} To end