fix: extracted all web related stuff to a new app
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
from django.urls import path
|
||||
|
||||
from shop.views import index, list_products, product_detail
|
||||
|
||||
app_name = "web"
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path("", index, name="index"),
|
||||
path("products/<int:pk>/<str:slug>/", product_detail, name="product_detail"),
|
||||
path("shop/components/products/", list_products, name="list_products"),
|
||||
]
|
||||
Reference in New Issue
Block a user