[Answer]-Using an html link to input value into django view

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.

Django Docs reference of named urls

👤ancho

Leave a comment