from django.urls import path from adminapp.views import index, admin_users_restore, admin_categories_update from adminapp.views import UserListView, UserCreateView, UserUpdateView, UserDeleteView from adminapp.views import CategoriesListView, CategoriesCreateView, admin_categories_remove, admin_categories_restore app_name = 'adminapp' urlpatterns = [ path('', index, name='index'), path('admin-users-read/', UserListView.as_view(), name='admin_users_read'), path('admin-users-create/', UserCreateView.as_view(), name='admin_users_create'), path('admin-users-update/<int:pk>/', UserUpdateView.as_view(), name='admin_users_update'), path('admin-users-remove/<int:pk>/', UserDeleteView.as_view(), name='admin_users_remove'), path('admin-users-restore/<int:user_id>/', admin_users_restore, name='admin_users_restore'), path('admin-categories-read/', CategoriesListView.as_view(), name='admin_categories_read'), path('admin-categories-create/', CategoriesCreateView.as_view(), name='admin_categories_create'), path('admin-categories-update/<int:id>/', admin_categories_update,
from django.urls import path from adminapp.views import index, admin_users_restore, admin_categories_remove, admin_products_remove from adminapp.views import UserListView, UserCreateView, UserUpdateView, UserDeleteView, CategoryListView, \ CategoryCreateView, CategoryUpdateView, ProductListView, ProductCreateView, ProductUpdateView app_name = 'adminapp' urlpatterns = [ path('', index, name='index'), path('admin-users-read/', UserListView.as_view(), name='admin_users_read'), path('admin-users-create/', UserCreateView.as_view(), name='admin_users_create'), path('admin-users-update/<int:pk>/', UserUpdateView.as_view(), name='admin_users_update'), path('admin-users-remove/<int:pk>/', UserDeleteView.as_view(), name='admin_users_remove'), path('admin-users-restore/<int:user_id>/', admin_users_restore, name='admin_users_restore'), path('admin-categories-read/', CategoryListView.as_view(), name='admin_categories_read'), path('admin-categories-create/', CategoryCreateView.as_view(), name='admin_categories_create'), path('admin-categories-update/<int:pk>/', CategoryUpdateView.as_view(), name='admin_categories_update'), path('admin-categories-remove/<int:category_id>/', admin_categories_remove, name='admin_categories_remove'), path('admin-products-read/', ProductListView.as_view(), name='admin_products_read'), path('admin-products-create/', ProductCreateView.as_view(), name='admin_products_create'), path('admin-products-update/<int:pk>/', ProductUpdateView.as_view(), name='admin_products_update'), path('admin-products-remove/<int:product_id>/', admin_products_remove, name='admin_products_remove'), ]
from adminapp.views import ProductDeleteView from adminapp.views import UserListView from adminapp.views import UserUpdateView from adminapp.views import UserCreateView from adminapp.views import UserDeleteView from adminapp.views import CategoryCreateView from adminapp.views import CategoryUpdateView from adminapp.views import CategoryDeleteView app_name = 'adminapp' urlpatterns = [ path('product/create/', ProductCreateView.as_view(), name='create'), path('product/read/', ProductListView.as_view(), name='product'), path('product/read/cat/<cat_pk>', ProductListView.as_view(), name='category'), path('product/read/<pk>', ProductDetailView.as_view(), name='detail'), path('product/update/<pk>', ProductUpdateView.as_view(), name='update'), path('product/del/<pk>', ProductDeleteView.as_view(), name='delete'), # ------------------------------------------------------------------ path('product/user_create/', UserCreateView.as_view(), name='user_create'), path('user/read/', UserListView.as_view(), name='user'), path('product/user_update/<pk>', UserUpdateView.as_view(), name='user_update'), path('product/user_delete/<pk>', UserDeleteView.as_view(), name='user_delete'), # ------------------------------------------------------------------ path('product/cat_create/', CategoryCreateView.as_view(), name='cat_create'), path('product/cat_update/<pk>', CategoryUpdateView.as_view(), name='cat_update'), path('product/cat_delete/<pk>', CategoryDeleteView.as_view(), name='cat_delete'), ]
from django.urls import path from adminapp.views import index, UserListView, UserCreateView, UserUpdateView, UserDeleteView, \ CategoryListView, CategoryCreateView, CategoryUpdateView, CategoryDeleteView app_name = 'adminapp' urlpatterns = [ path('', index, name='index'), path('users-read/', UserListView.as_view(), name='users_read'), path('users-create/', UserCreateView.as_view(), name='users_create'), path('users-update/<int:pk>/', UserUpdateView.as_view(), name='users_update'), path('users-remove/<int:pk>/', UserDeleteView.as_view(), name='users_remove'), path('categories-read/', CategoryListView.as_view(), name='categories_read'), path('categories-create/', CategoryCreateView.as_view(), name='categories_create'), path('categories-update/<int:pk>/', CategoryUpdateView.as_view(), name='categories_update'), path('categories-remove/<int:pk>/', CategoryDeleteView.as_view(), name='categories_remove') ]
from django.urls import path from adminapp.views import (AdminIndexView, UserListView, UserCreateView, UserUpdateView, UserDeleteView) from adminapp.views import (ProductListView, ProductCreateView, ProductUpdateView, ProductDeleteView) from adminapp.views import (ProductCategoryListView, ProductCategoryCreateView, ProductCategoryUpdateView, ProductCategoryDeleteView) app_name = 'adminapp' urlpatterns = [ path("", AdminIndexView.as_view(), name="index"), path("users/", UserListView.as_view(), name="admin_users"), path("users-create/", UserCreateView.as_view(), name="admin_users_create"), path("users-update/<int:pk>/", UserUpdateView.as_view(), name="admin_users_update"), path("users-delete/<int:pk>/", UserDeleteView.as_view(), name="admin_users_delete"), path("products/", ProductListView.as_view(), name="admin_products"), path("products-create/", ProductCreateView.as_view(), name="admin_products_create"), path("products-update/<int:pk>/", ProductUpdateView.as_view(), name="admin_products_update"), path("products-delete/<int:pk>/", ProductDeleteView.as_view(), name="admin_products_delete"), path("categories/", ProductCategoryListView.as_view(), name="admin_categories"), path("categories-create/", ProductCategoryCreateView.as_view(), name="admin_categories_create"), path("categories-update/<int:pk>/", ProductCategoryUpdateView.as_view(), name="admin_categories_update"), path("categories-delete/<int:pk>/", ProductCategoryDeleteView.as_view(), name="admin_categories_delete"), ]
from django.urls import path from adminapp.views import index from adminapp.views import UserListView, UserCreateView, UserUpdateView, UserDeleteView from adminapp.views import ProductListView, ProductCreateView, ProductUpdateView, ProductDeleteView from adminapp.views import (ProductCategoryListView, ProductCategoryCreateView, ProductCategoryUpdateView, ProductCategoryDeleteView) app_name = 'adminapp' urlpatterns = [ path('', index, name='index'), path('users/', UserListView.as_view(), name='users-read'), path('create-user/', UserCreateView.as_view(), name='create-user'), path('update-user/<int:pk>/', UserUpdateView.as_view(), name='update-user'), path('delete-user/<int:pk>/', UserDeleteView.as_view(), name='delete-user'), path('list-product/', ProductListView.as_view(), name='read-product'), path('create-product/', ProductCreateView.as_view(), name='create-product'), path('update-product/<int:pk>/', ProductUpdateView.as_view(), name='update-product'), path('delete-product/<int:pk>/', ProductDeleteView.as_view(), name='delete-product'), path('list-product-category/', ProductCategoryListView.as_view(), name='read-product-category'), path('create-product-category/',