How do I capture multiple values from a URL in Django?
Conditions: I would like to capture ids from a URL. The ids vary in length (consist of numbers only), and there can be multiple ids in the URL. Check out the following two examples:
http://127.0.0.1:8000/library/check?id=53&id=1234
http://127.0.0.1:8000/library/check?id=4654789&id=54777&id=44
The solution may include regex.
urlpatterns = [
path("", view=my_view),
path("<solution_comes_here>", view=check_view, name="check_view"),
]
P.S. all solutions I found on this platform and Django documentation only explain cases for capturing single values from the URL