<li {% if request.resolver_match.url_name == 'home' %}class="active"{% endif %}> <a href="/">HOME</a> </li>