class Detail(DetailView):
model = Product
template_name = 'magazin/prod.html'
context_object_name = 'prod'
urlpatterns = [
path('',views.index,name='index'),
path('<slug:url>/',views.cat,name='vc'),
path('<int:pk>', views.Detail.as_view(),name='detail')
]
<a href="{% url 'detail' i.id %}">ПОДРОБНЕЕ</a>