How can I use template variable in dynamic url. I want something like this:
href="{% url '{{ questionnaire.url }}' %}"
The problem is that I get this error:
Reverse for '{{ questionnaire.url }}' not found. '{{ questionnaire.url }}' is not a valid view function or pattern name.
Update:
The problem is here in my javascript:
<script>
let el = `<a href="{% url '${questionnaire.url}' %}"></a>
</script>
I insert this code in my template dynamic, and the Django template cant resolve the url correctly.