Answers for "how to change navbar active status in django"

1

django how to set a navbar active

<li class="nav-item {% if request.resolver_match.view_name == 'scores:list' %}active{% endif %}">
    <a class="nav-link" href="{% url 'scores:list' %}">Scores</a>
</li>
Posted by: Guest on June-09-2021

Code answers related to "how to change navbar active status in django"

Python Answers by Framework

Browse Popular Code Answers by Language