How to add correctly in my example {% url 'myview' %}
{% if request.path == {% url 'myview' %} %}
?
Django has this nice built-in feature that you can assign the url to a variable and then use it:
{% url 'myview' as my_view %}
{% if request.path == my_view %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With