How to check url from namespace
1 answer
I have the same problem. You can of course check if a given url is part of all urls, but this is not very DRY ...
It will look like this:
{% url 'firsturl' as first_url %}
{% if request.get_full_path == first_url %}
...do something...
{% endif %}
Hope someone finds a better answer! Actually I am using this quite a lot now and it works great :)
0
source to share