<li class="nav-item {% if request.resolver_match.namespace == 'nonlocalizedevents' %}active{% endif %}">
    <a class="nav-link" href="{% url 'nonlocalizedevents:index' %}">Nonlocalized Events</a>
</li>
