<gh_stars>0
from django.urls import path
from . import views

urlpatterns = [
    path('', views.view_cart, name='view_cart'),
    path('add/<product_id>/', views.add_to_cart, name='add_to_cart'),
    path('delete/<product_id>/',
         views.delete_from_cart, name='delete_from_cart'),
]

from django.urls import path
from . import views

urlpatterns = [
    path('', views.view_cart, name='view_cart'),
    path('add/<product_id>/', views.add_to_cart, name='add_to_cart'),
    path('delete/<product_id>/',
         views.delete_from_cart, name='delete_from_cart'),
]