{% load paginator %} {% for i in page_numbers %} {% ifequal i page_num %} {{ i }} {% else %} {{ i }} {% endifequal %} {% endfor %}