from django.conf.urls import url

from .views import ProductCatalogue, ProductDetail, product_review


urlpatterns = [
    url(r'^catalogue/$', ProductCatalogue.as_view(), name='catalogue'),
    url(r'^review/$', product_review, name='review'),
    url(r'^(?P<slug>[\w\-]+)/$', ProductDetail.as_view(), name='detail'),
]

from django.conf.urls import url

from .views import ProductCatalogue, ProductDetail, product_review


urlpatterns = [
    url(r'^catalogue/$', ProductCatalogue.as_view(), name='catalogue'),
    url(r'^review/$', product_review, name='review'),
    url(r'^(?P<slug>[-\w]+)/$', ProductDetail.as_view(), name='detail'),
]

Edit product:detail URLConf