categorys slider view

This commit is contained in:
Parsa Nazer
2025-05-19 21:37:47 +03:30
parent df5641b6c0
commit 0b55ae8b2a
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
from django.urls import path
from .views import AllCategories, ProductView, AllProductsView, CommentView, ShowCaseProductsView
from .views import AllCategories, ProductView, AllProductsView, CommentView, ShowCaseProductsView, ShowCaseCategoryListView
urlpatterns = [
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('<int:pk>', ProductView.as_view(), name='product-detail'),
path('comments/<int:pk>', CommentView.as_view(), name='comment-views'),
]