[Answered ]-URL with args does not reverse

1👍

Use args instead of kwargs,

url = reverse('configuration_homepage', args=[short_name, product_id])
👤Rohan

1👍

Your kwargs is wrong, you are passing a set() instead of a dict()

What you (probably) want is:

url = reverse('configuration_homepage',
              kwargs={short_name: short_name, product_id: product_id})

This is one of the many reasons why I prefer dict(a=1, b=2) over {a:1, b:2} when possible,

Leave a comment