Bootstrap active class not working with django -


i tried use active class django, user knows page on it's not working. tried tried using this

<div class="text-center" style="margin-bottom: 20px"> <ul class="pagination"> {% in paginator.page_range %}  <li {% if page_obj.number == %} class="active" {% endif %}><a href="?tags={{i}}">{{i}}</a><li> {% endfor %} </ul> 

but it's not working. proper syntax make work?

i have looked @ few posts on here , tried

class="{% if page_obj.number == %} active {% endif %}" 

but thishasn't worked either in advance


Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

authentication - ASP.NET Core 1.0. Bearer Token, cannot access custom claims -