This is the best way to do it using Django templates: {% if request.path == ecomproduct_url %} active {%endif%} This will highlight “Products” in navbar.
確定! 回上一頁