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 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 app_name = 'adminapp' urlpatterns = [ path('', index, 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'), ]
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 BidsView, EditBidsView, UserListView, EditUserView urlpatterns = [ path('<int:page>/', BidsView.as_view(), name='staff_profile'), path('users/<int:page>/', UserListView.as_view(), name='staff_user_list'), path('edit/<int:pk>/', EditBidsView.as_view(), name='staff_edit_bid'), path('user/<int:pk>/', EditUserView.as_view(), name='staff_edit_user'), ]
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"), ]