urls.py 425 B

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