Example #1
0
# -*-coding:utf-8-*-
from django.conf.urls import url
from apps.cart.views import CartAddview, CartInfoView, CartUpdateView, CartDeleteView

app_name = 'apps.cart'
urlpatterns = [
    url(r'^add&', CartAddview.as_view(), name='add'),  # 购物车页面
    url(r'^$', CartInfoView.as_view(), name='show'),  # 显示购物车页
    url(r'^update$', CartUpdateView.as_view(), name='update'),  # 购物车数据更新
    url(r'^delete$', CartDeleteView.as_view(), name='delete'),  # 删除购物车中的商品记录
]
Example #2
0
from django.conf.urls import url
from apps.cart.views import AddCartView, CartInfoView, UpdateCartView, DeleteCartView
from apps.cart import views
urlpatterns = [
    url(r'^add$', AddCartView.as_view(), name='addcart'),
    url(r'^$', CartInfoView.as_view(), name='cart'),
    url(r'^update$', UpdateCartView.as_view(), name='updatecart'),
    url(r'^delete$', DeleteCartView.as_view(), name='deletecart'),
]
Example #3
0
from django.urls import re_path

from apps.cart.views import CartAddView, CartInfoView, CartUpdateView, CartDeleteView

app_name = "cart"
urlpatterns = [
    re_path(r'^add$', CartAddView.as_view(), name='add'),
    re_path(r'^update$', CartUpdateView.as_view(), name='update'),
    re_path(r'^delete$', CartDeleteView.as_view(), name='delete'),
    re_path(r'^$', CartInfoView.as_view(), name='show'),
]
Example #4
0
from django.urls import path, re_path
from apps.cart.views import CartAddView, CartInfoView, CartUpdateView, CartDeleteView

urlpatterns = [
    path('add', CartAddView.as_view(), name='add'),  # 购物车记录添加
    path('', CartInfoView.as_view(), name='show'),  # 购物车页面显示
    path('update', CartUpdateView.as_view(), name='update'),  # 购物车记录更新
    path('delete', CartDeleteView.as_view(), name='delete'),  # 购物车记录删除
]
Example #5
0
from django.urls import path
from apps.cart.views import CarDeleteView, CartAddView, CartInfoView, CartUpdateView

app_name = 'apps.cart'
urlpatterns = [
    path('', CartInfoView.as_view(), name='cart'),  # 购物车页面
    path('add', CartAddView.as_view(), name='add'),  # 显示购物车页
    path('update', CartUpdateView.as_view(), name='update'),  # 显示购物车页
    path('delete', CarDeleteView.as_view(), name='delete'),  # 显示购物车页
]
Example #6
0
from django.conf.urls import url
from apps.cart.views import CartInfoView, CartAddView

urlpatterns = [
    url(r'^$', CartInfoView.as_view(), name="show"),
    url(r'^add$', CartAddView.as_view(), name="add"),
]
Example #7
0
from django.conf.urls import url
from apps.cart.views import (
    CartAddView,
    CartInfoView,
    CartUpdateView,
    CartDeleteView,
)

urlpatterns = [
    url('^add$', CartAddView.as_view(), name='add'),
    url('^$', CartInfoView.as_view(), name='show'),
    url('^update$', CartUpdateView.as_view(), name='update'),
    url('^delete$', CartDeleteView.as_view(), name='delete'),
]
Example #8
0
from django.conf.urls import url
from apps.cart.views import CartInfoView,CartInfoAdd, CartInfoUpdate,CartInfoDelete
urlpatterns = [
    # 添加到购物车
    url(r'^add$',CartInfoAdd.as_view(), name='add'),
    # 显示购物车页
    url(r'^$', CartInfoView.as_view(),name='show'),
    # 购物车数据更新
    url(r'^update$', CartInfoUpdate.as_view(), name='update'),
    # 删除购物车中的商品记录
    url(r'^delete$', CartInfoDelete.as_view(), name='delete'),
]
Example #9
0
from django.conf.urls import url
from apps.cart.views import CartAddView, CartInfoView, CartUpdateView, CartDeleteView

urlpatterns = [
    url(r'^show_cart', CartInfoView.as_view(), name='cart'),
    url(r'^add$', CartAddView.as_view(), name='add'),
    url(r'update$', CartUpdateView.as_view(), name='update'),
    url(r'delete$', CartDeleteView.as_view(), name='delete'),
]
Example #10
0
from django.urls import path
from apps.cart.views import CartAddView, CartInfoView, CartUpdateView, CartDeleteView

urlpatterns = [
    path('add', CartAddView.as_view(), name="add"),
    path("", CartInfoView.as_view(), name="show"),
    path("update", CartUpdateView.as_view(), name="update"),
    path("delete", CartDeleteView.as_view(), name="delete"),
]