django active navigation on template

PHOTO EMBED

Tue Dec 22 2020 09:02:28 GMT+0000 (Coordinated Universal Time)

Saved by @lewiseman #python #django

{% if request.resolver_match.url_name == 'home' %} active {% endif %}
content_copyCOPY