from django.urls import path, re_path

from apps.main import views

urlpatterns = [

    path('', views.ProductList.as_view(), name='index'),

    re_path(r'^catalog/(?P<filter>.+)/$',
            views.ProductList.as_view(),
            name='catalog_filter'),

    re_path(r'^detail/(?P<pk>\d+)/$',
            views.ProductView.as_view(),
            name='product_detail'),

]

00414ab2914473be6366dca65190a2a7619f3ad4
<mask token>

<mask token>
urlpatterns = [path('', views.ProductList.as_view(), name='index'), re_path
    ('^catalog/(?P<filter>.+)/$', views.ProductList.as_view(), name=
    'catalog_filter'), re_path('^detail/(?P<pk>\\d+)/$', views.ProductView.
    as_view(), name='product_detail')]

from django.urls import path, re_path
from apps.main import views
urlpatterns = [path('', views.ProductList.as_view(), name='index'), re_path
    ('^catalog/(?P<filter>.+)/$', views.ProductList.as_view(), name=
    'catalog_filter'), re_path('^detail/(?P<pk>\\d+)/$', views.ProductView.
    as_view(), name='product_detail')]

from django.urls import path, re_path

from apps.main import views

urlpatterns = [

    path('', views.ProductList.as_view(), name='index'),

    re_path(r'^catalog/(?P<filter>.+)/$',
            views.ProductList.as_view(),
            name='catalog_filter'),

    re_path(r'^detail/(?P<pk>\d+)/$',
            views.ProductView.as_view(),
            name='product_detail'),

]
