[Answered ]-Django href pass multiple parameters to function

1👍

You can define a path with two (or more) parameters with:

path('Up_Items/<int:id_itm>/<int:id_itm2>/', views.ADD_item, name='Up_Items'),

we thus define two variables id_itm and id_itm2, and both have <int:…> as path converter. We use a slash between the two to make it clear where one id stops and the other starts. You can also work with a comma for example, but a slash is more common and a comma should require percent-encoding [wiki].

then we can define a function with:

def ADD_item(request, id_itm, id_itm2):
    # …
    pass

and refer to it with:

<a href="{% url 'Up_Items' item.id object.id %}">

Leave a comment