1👍
✅
You can do it with as
.
{% url 'event_detail' pk=event.id as event_music_url %}
{% if request.url == event_music_url %}
...
{% endif %}
Source:stackexchange.com