Answers for "get current page in django"

0

How to get current page url in django template

{{ request.build_absolute_uri }} #Domain, path and querystring
Posted by: Guest on July-10-2021
0

current page django

<a href="/some/path/to/be/highlighted/"{% if request.path == '/some/path/to/be/highlighted/' %} class="active"{% endif %}>Some Link</a>
Posted by: Guest on August-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language