1👍
use name url patterns.
Add named urls with argument in ‘href’ in templates.
<a href="{% url 'wiki_country' country_object.name %}"> {% country_object.name %} </a>
‘country_object.name‘ is your input argument for country function.
Source:stackexchange.com