Mar-30-2020, 10:44 AM
My url pattern is /music/712/ which I can match using
But how do I tailor it to match url pattern that strictly has 2 digits and not 3 digits i.e. /music/41/
path('music/<int:album_id>/', views.detail, name='detail')
But how do I tailor it to match url pattern that strictly has 2 digits and not 3 digits i.e. /music/41/