from django.contrib import admin
from django.urls import path
from pages.views import home_view,contact_view,about_view
from products.views import (
    product_delete_view,
    product_list_view,
    product_update_view,
    product_create_view,
    product_detail_view
)
app_name='products'
urlpatterns = [
  path('',product_list_view,name='product-list'),
    path('create/', product_create_view,name='product-list'),
    path('<int:id>/',product_detail_view,name='product-detail'), 
    path('<int:id>/delete/',product_delete_view,name='product-delete'), 
    path('<int:id>/update/',product_update_view,name='product-update')
]