Exemple #1
0
from django.conf.urls import url

from cart.views import AddCartView, CartShowView

app_name = 'cart'
urlpatterns = [
    url(r'^add/$', AddCartView.as_view(), name='添加购物车'),
    url(r'^show/$', CartShowView.as_view(), name='购物车展示'),
]
Exemple #2
0
from django.conf.urls import url

from cart.views import AddCartView, BaseCartView, CartInfoView, UpdateCartView, DeleteCartView

urlpatterns = [
    url(r'^add$', AddCartView.as_view(), name='add'),
    url(r'^cartinfo$', CartInfoView.as_view(), name='cartinfo'),
    url(r'^update$', UpdateCartView.as_view(), name='date'),
    url(r'^delete$', DeleteCartView.as_view(), name='delete')
]
Exemple #3
0
from django.conf.urls import url

from cart.views import AddCartView, ShopCartView

urlpatterns = [
    url(r'^add/$', AddCartView.as_view(), name="添加购物车"),
    url(r'^$', ShopCartView.as_view(), name="购物车页面"),
]