I\'m having trouble configuring my url to display a detail view. Clicking on this link: {{ blog.name }}
Rudolf absolutely right
The /$
stopped blog from catching all the subpages which called by slug
so if you have subpages you need to add /$
to folder level as follow:
re_path('brands/$', AllBrands.as_view(), name="brands"),
re_path(r'^brands/(?P[\w-]+)/$', BrandDetail.as_view(), name = 'brandetail'),
This is django 2.2
Without /$
after brands, the slug page was showing the brands listing page.