[Fixed]-Multiple django urls arguments not working

1👍

You may want to rearrange your urls so that the less specific one is first

url(r'^(?P<album_id>\d+)$', views.album_details, name='album_details'),
url(r'^(?P<album_id>\d+)/(?P<pic_id>\d+)/$', views.details, name='details'),

You will also note that I’ve modified the first regex to include the $ character to indicate thats the end of the match

👤Sayse

Leave a comment