I am using Django 3.1
I have URLs configured so that I can corretly use the following in my template:
<li><a href="{% url 'sitemember:profile' 'bobby' %}">{{ user.username }} </a></li>
Where user.username resolves to 'bobby'
How do I pass the variable user.username
to the url()
tag, so that the URL resolves correctly as:
https://localhost:/user/bobby (as an example)