I'm following a tutorial which works with Django, there is a URL pattern like this:
url(r'^lists/(.+)/$', views.list_view, name='list_view')
That's a greedy regex pattern and it will match something such as: lists/123/add_item/ with 123/add_item as matched-group. That is not what is expected. So I tried to change it to non-greedy one like this:
url(r'^lists/(.+?)/$', views.list_view, name='list_view')
But Django still resolve it to views.list_view
Could you please give me some explanation?