|
4 | 4 | AdminDashboardView, |
5 | 5 | AdminRegisterView, |
6 | 6 | AdminUserDetailView, |
| 7 | + DeleteAccountView, |
7 | 8 | LoginView, |
8 | 9 | ProductDetailView, |
9 | 10 | ProductListView, |
10 | 11 | ProductReviewCreateUpdateView, |
| 12 | + ProfileView, |
11 | 13 | TechnicianRegisterView, |
12 | 14 | UserRegisterView, |
13 | 15 | ) |
|
21 | 23 | ), |
22 | 24 | path("register/admin/", AdminRegisterView.as_view(), name="admin-register"), |
23 | 25 | path("login/", LoginView.as_view(), name="login"), |
24 | | - path("products/", ProductListView.as_view()), |
25 | | - path("products/<int:product_id>/", ProductDetailView.as_view()), |
26 | | - path("products/<int:product_id>/review/", ProductReviewCreateUpdateView.as_view()), |
| 26 | + path("profile/<str:username>/", ProfileView.as_view(), name="profile_detail"), |
| 27 | + path("products/", ProductListView.as_view(), name="product-list"), |
| 28 | + path( |
| 29 | + "products/<int:product_id>/", ProductDetailView.as_view(), name="product-detail" |
| 30 | + ), |
| 31 | + path( |
| 32 | + "products/<int:product_id>/review/", |
| 33 | + ProductReviewCreateUpdateView.as_view(), |
| 34 | + name="product-review", |
| 35 | + ), |
27 | 36 | path("admin/dashboard/", AdminDashboardView.as_view(), name="admin-dashboard"), |
28 | 37 | path( |
29 | 38 | "admin/users/<int:user_id>/", |
30 | 39 | AdminUserDetailView.as_view(), |
31 | 40 | name="admin-user-detail", |
32 | 41 | ), |
| 42 | + path("delete-account/", DeleteAccountView.as_view(), name="delete-account"), |
33 | 43 | ] |
0 commit comments