urls.py 830 B

1234567891011121314151617181920212223
  1. # urls.py
  2. from django.urls import path,re_path
  3. from . import views
  4. urlpatterns = [
  5. path('createInboundApply', views.InboundApplyCreate.as_view()),
  6. path('createOutboundApply', views.OutboundApplyCreate.as_view()),
  7. path('updateBatchInfo', views.BatchUpdate.as_view()),
  8. path('productInfo', views.ProductInfo.as_view()),
  9. path('generateinbound', views.GenerateInbound.as_view()),
  10. path('inboundBills/', views.InboundBills.as_view({"get": "list"}),name="inboundBills"),
  11. re_path(r'^inboundBills/(?P<pk>\d+)/$', views.InboundBills.as_view({
  12. 'get': 'retrieve'
  13. }), name="inboundBills_1"),
  14. path('materials/', views.Materials.as_view({"get": "list"}),name="Materials"),
  15. re_path(r'^materials/(?P<pk>\d+)/$', views.Materials.as_view({
  16. 'get': 'retrieve',
  17. }), name="Materials_1"),
  18. ]