This is simple and obvious but I can’t get it right:
I have the following view function declared in urls.py
(r'^v1/(\d+)$', r'custom1.views.v1'),
originally I was passing a single parameter to the view function v1.
I want to modify it to pass 2 parameters. How do I declare the entry in urls.py to take two parameters?
I believe each group in the regex is passed as a parameter (and you can name them if you want):
Check out the examples at: https://docs.djangoproject.com/en/dev/topics/http/urls/. You can also name your groups.