From 8087f3aaa54acd2690340a2f01b2d7326c1191dd Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Thu, 22 May 2025 13:59:25 +0330 Subject: [PATCH] fix url --- backend/product/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/product/urls.py b/backend/product/urls.py index e395827..76c6fd8 100644 --- a/backend/product/urls.py +++ b/backend/product/urls.py @@ -6,6 +6,6 @@ urlpatterns = [ path('categories', AllCategories.as_view(), name='all-categories'), path('slider_categories', ShowCaseCategoryListView.as_view(), name='all-categories'), path('comments/', CommentView.as_view(), name='comment-views'), - re_path(r'^(?P[\u0600-\u06FF\s]+)/$', ProductView.as_view(), name='product-detail'), + re_path(r'^(?P[\w\u0600-\u06FF\-]+)/$', ProductView.as_view(), name='product-detail'), path('', AllProductsView.as_view(), name='category-products'), ] \ No newline at end of file