Update urls.py

This commit is contained in:
Parsa Nazer
2025-05-21 18:14:32 +03:30
committed by GitHub
parent 74fc7c147b
commit c80c581a10
+2 -2
View File
@@ -2,10 +2,10 @@ from django.urls import path
from .views import AllCategories, ProductView, AllProductsView, CommentView, ShowCaseProductsView, ShowCaseCategoryListView
urlpatterns = [
path('<slug:slug>', ProductView.as_view(), name='product-detail'),
path('', AllProductsView.as_view(), name='category-products'),
path('slider_category', ShowCaseProductsView.as_view(), name='category-products'),
path('categories', AllCategories.as_view(), name='all-categories'),
path('slider_categories', ShowCaseCategoryListView.as_view(), name='all-categories'),
path('comments/<int:pk>', CommentView.as_view(), name='comment-views'),
path('<slug:slug>', ProductView.as_view(), name='product-detail'),
path('', AllProductsView.as_view(), name='category-products'),
]