feat: index and product detail view

This commit is contained in:
2024-11-21 19:51:12 +01:00
parent 2c7e51d602
commit 8783404570
13 changed files with 369 additions and 7 deletions
+3 -1
View File
@@ -1,9 +1,11 @@
from django.urls import path
from shop.views import index
from shop.views import index, list_products, product_detail
app_name = "shop"
urlpatterns = [
path("", index, name="index"),
path("products/<int:pk>/", product_detail, name="product_detail"),
path("shop/components/products/", list_products, name="list_products"),
]