| 1234567891011121314 | from django.urls import path, re_pathfrom . import viewsurlpatterns = [    path ('', views.locationViewSet.as_view({"get": "list"}), name='location_list'),    path ('check/', views.locationViewSet.as_view({"post": "batch_status_location"}), name='location_list'),    re_path(r'^(?P<pk>\d+)/$',  views.locationViewSet.as_view({"get": "retrieve", "put": "update"}), name='location_detail'),    path (r'group/', views.locationGroupViewSet.as_view({"get": "list"}), name='location_list'),    re_path(r'^group/(?P<pk>\d+)/$',  views.locationGroupViewSet.as_view({"get": "retrieve", "put": "update"}), name='location_detail'),    # path(r'management/', views.stockshelfViewSet.as_view({"get": "list", "post": "create"}), name="management"),    # re_path(r'^management/(?P<pk>\d+)/$', views.stockshelfViewSet.as_view({'get': 'retrieve','put': 'update','patch': 'partial_update','delete': 'destroy'}), name="staff_1"),]
 |