Here we use the object that we passed to render_template to display the pages, the current active page, and also a previous and next buttons if you can go to the previous/next page.
<!-- previous page -->
{% if users_list.has_prev %}
<li>
<a href="{{ url_for('users', page...