urls.py 415 B

1234567891011121314
  1. from django.urls import path
  2. from . import views
  3. app_name = 'goods'
  4. #Шаблоны ссылок данного приложения
  5. urlpatterns = [
  6. path('goods/',views.good_list, name = 'good_list'),
  7. path('goods/<str:_id>/',views.good_detail, name = 'good_detail'),
  8. path('good/<str:_id>/delete/',views.good_delete, name = 'good_delete'),
  9. path('good/',views.good_upsert, name = 'good_upsert'),
  10. ]