I know that in a template file I can include this code which will return a list of links
{% for q in all %}
<ul>
<li><a href={% url 'detail' q.id %}>{{ q.question_text }}</a></li>
</ul>
{% endfor %}
Now django will search for the name 'detail'
in the urls.py
file of my app directory and it will automatically give the value of q.id
to that argument. But what if I have a url that contains more than 1 variable. So here I can only give one argument i.e, q.id
. But what if I want to give more than one argument.
Hope I am clear