A
A
Anton2017-02-05 14:15:38
Django
Anton, 2017-02-05 14:15:38

How to compare urls in a template?

Hello. How can you do something like this

{% if request.path == url 'url_name' %}
        ...
{% endif %}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question