コード例 #1
0
ファイル: urls.py プロジェクト: colgateky/dailyDemo
# -*-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'),  # 删除购物车中的商品记录
]
コード例 #2
0
from django.urls import path, re_path
from apps.cart.views import AddCartView, CartListView, CartUpdateView
from django.conf.urls import include, url

urlpatterns = [
    re_path('^add$', AddCartView.as_view(), name="add"),
    re_path('^update$', CartUpdateView.as_view(), name="update"),
    re_path('^', CartListView.as_view(), name="list")
]
コード例 #3
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'),  # 显示购物车页
]
コード例 #4
0
ファイル: urls.py プロジェクト: ngchwanlii/aws-superbfresh
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'),
]
コード例 #5
0
ファイル: urls.py プロジェクト: GSFNE/b-b-b
from django.conf.urls import url
from apps.cart.views import CartInfoView, CartAddView, CartUpdateView, CartDeleteView

urlpatterns = [
    url(r'^$', CartInfoView.as_view(), name='show'),  # 购物车首页
    url(r'^add$', CartAddView.as_view(), name='add'),  # 添加购物车
    url(r'^update$', CartUpdateView.as_view(), name='update'),  # 购物车页面的操作, 数量增加/减少,删除等
    url(r'^delete$', CartDeleteView.as_view(), name='delete'),  # 删除购物车内商品





]
コード例 #6
0
ファイル: urls.py プロジェクト: IfanTsai/B2C_mall
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'),
]
コード例 #7
0
ファイル: urls.py プロジェクト: LianHanJi/Django
from django.urls import path
from apps.cart.views import CartAddView, CartInfoView, CartUpdateView, CartDeleteView


app_name = 'cart'

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'), # 购物车记录的删除

]
コード例 #8
0
ファイル: urls.py プロジェクト: yufeng97/dailyfresh
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"),
]
コード例 #9
0
from django.urls import path
from apps.cart.views import CartView, CartAddView, CartUpdateView, CartDeleteView

urlpatterns = [
    path('', CartView.as_view(), name='show'),  # 显示用户购物车页
    path('add/', CartAddView.as_view(), name='add'),  # 添加商品到购物车
    path('update/', CartUpdateView.as_view(), name='update'),  # 添加商品到购物车
    path('delete/', CartDeleteView.as_view(), name='delete'),  # 从购物车删除商品
]