summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorspl3g <spleefer6@gmail.com>2026-06-01 21:23:12 +0300
committerspl3g <spleefer6@gmail.com>2026-06-01 21:23:12 +0300
commitc0fe3e1db70bdba85cf382624817d8d8ea9d6f85 (patch)
tree74065ec21768d63f6cc537bdce72b63ddf513b32 /config
parent386e9defbea931ebc5139a5db5c74e6f44bbbe02 (diff)
add orders list, update, create
Diffstat (limited to 'config')
-rw-r--r--config/urls.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/urls.py b/config/urls.py
index 1808f0f..858536b 100644
--- a/config/urls.py
+++ b/config/urls.py
@@ -24,6 +24,10 @@ from core.views import (
UserLoginView,
ProductListView,
ProductCreateView,
+ ProductUpdateView,
+ OrderListView,
+ OrderCreateView,
+ OrderUpdateView,
)
urlpatterns = [
@@ -32,6 +36,10 @@ urlpatterns = [
path("logout/", LogoutView.as_view(), name="logout"),
path("products/", ProductListView.as_view(), name="product_list"),
path("products/add/", ProductCreateView.as_view(), name="product_create"),
+ path("products/<int:pk>/edit/", ProductUpdateView.as_view(), name="product_edit"),
+ path("orders/", OrderListView.as_view(), name="order_list"),
+ path("orders/add/", OrderCreateView.as_view(), name="order_create"),
+ path("orders/<int:pk>/edit/", OrderUpdateView.as_view(), name="order_update"),
]
if settings.DEBUG: