示例#1
0
from django.urls import include, path

from shop.views import ShopListView

urlpatterns = [
    path('', ShopListView.as_view()),
]
示例#2
0
#-*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from shop.views import ShopListView
from shop_simplecategories.models import Category
from shop_simplecategories.views import CategoryDetailView


urlpatterns = patterns('',
    # Categories
    url(r'^$',
        ShopListView.as_view(model=Category),
        name='category_list'),
    url(r'^(?P<slug>[0-9A-Za-z-_.//]+)/$',
        CategoryDetailView.as_view(),
        name='category_detail'))
示例#3
0
        ShippingBackendRedirectView.as_view(),
        name='checkout_shipping'  # First step of the checkout process
    ),
    #url(r'^checkout/pay/$', SelectPaymentView.as_view(),
    #    name='checkout_payment' # Second step of the checkout process
    #    ),
    url(
        r'^checkout/pay/$',
        PaymentBackendRedirectView.as_view(),
        name='checkout_payment'  # First step of the checkout process
    ),
    url(
        r'^checkout/thank_you/$',
        ThankYouView.as_view(),
        name='thank_you_for_your_order'  # Second step of the checkout process
    ),
    # Products
    url(r'^products/$',
        ShopListView.as_view(model=Product),
        name='product_list'),
    url(r'^products/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        ProductDetailView.as_view(),
        name='product_detail'),

    # Orders
    url(r'^orders/$', OrderListView.as_view(), name='order_list'),
    url(r'^orders/(?P<pk>\d+)/$',
        OrderDetailView.as_view(),
        name='order_detail'),
)
示例#4
0
from django.conf.urls.defaults import patterns, url

from shop.views import ShopListView
from shop.views.product import ProductDetailView
from shop.models.productmodel import Product


urlpatterns = patterns(
    "",
    url(r"^$", ShopListView.as_view(model=Product), name="product_list"),
    url(r"^(?P<slug>[0-9A-Za-z-_.//]+)/$", ProductDetailView.as_view(), name="product_detail"),
)
from django.conf.urls.defaults import patterns, url

from shop.views import ShopListView
from shop.views.product import ProductDetailView
from shop.models.productmodel import Product


urlpatterns = patterns('',
    url(r'^w$', # hack to get page from cms
        ShopListView.as_view(model=Product),
        name='shop_welcome'
        ),
    url(r'^products/$',
        ShopListView.as_view(model=Product),
        name='product_list'
        ),        
    url(r'^products/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        ProductDetailView.as_view(),
        name='product_detail'
        ),
    )
示例#6
0
#-*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
from shop.views import ShopListView
from shop_simplecategories.models import Category
from shop_simplecategories.views import CategoryDetailView


urlpatterns = patterns('',
    # Categories
    url(r'^categories/$',
        ShopListView.as_view(model=Category),
        name='category_list'
        ),
    url(r'^categories/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        CategoryDetailView.as_view(),
        name='category_detail'
        ),
)
示例#7
0
    # Cart
    url(r'^cart/$', CartDetails.as_view(), 
        name='cart' # NOT cart_detail since we can POST to it to add stuff
        ),
    
    # Checkout
    url(r'^checkout/$', SelectShippingView.as_view(), 
        name='checkout' # NOT cart_detail since we can POST to it to add stuff
        ),
    
    # Products
    url(r'^product/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        ProductDetailView.as_view(),
        name='product_detail'
        ),
    url(r'^products/$',
        ShopListView.as_view(model=Product),
        name='product_list'
        ),
        
    # Categories
    url(r'^categories/$',
        ShopListView.as_view(model=Category),
        name='category_list'
        ),
    url(r'^category/(?P<slug>[0-9A-Za-z-_.//]+)/$',
        CategoryDetailView.as_view(),
        name='category_detail'
        ),
)
示例#8
0
from django.conf.urls.defaults import patterns, url

from shop.views import ShopListView
from shop.views.product import ProductDetailView
from shop.models.productmodel import Product

urlpatterns = patterns(
    '',
    url(r'^$', ShopListView.as_view(model=Product), name='product_list'),
    url(r'^(?P<slug>[0-9A-Za-z-_.//]+)/$',
        ProductDetailView.as_view(),
        name='product_detail'),
)
示例#9
0
文件: urls.py 项目: d-hancock/Core2
from django.urls import path
from shop.views import ShopCreateView, ShopListView
urlpatterns = [
    path('shops/', ShopListView.as_view(), name='shop-list'),
    path('create/', ShopCreateView.as_view(), name='create-shop'),
]
示例#10
0
from django.urls import path

from shop.views import HomePageView, ProductDetailView, ShopListView

app_name = 'shop'

urlpatterns = [
    path('', HomePageView.as_view(), name='home'),
    path('shop/<str:category>/<slug:slug>/<int:pk>',
         ProductDetailView.as_view(),
         name='product_detail'),
    path('shop', ShopListView.as_view(), name='shop'),
    path('shop/<slug:category_slug>/',
         ShopListView.as_view(),
         name='product_list_by_category')
]
示例#11
0
#-*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
from shop.views import ShopListView
from shop_simplecategories.models import Category
from shop_simplecategories.views import CategoryDetailView

urlpatterns = patterns(
    '',
    # Categories
    url(r'^$', ShopListView.as_view(model=Category), name='category_list'),
    url(r'^(?P<slug>[0-9A-Za-z-_.//]+)/$',
        CategoryDetailView.as_view(),
        name='category_detail'))
示例#12
0
from django.urls import path

from shop.views import ShopCreateView, ShopListView, ShopDetailView

app_name = 'shop'

urlpatterns = [
    path('create/', ShopCreateView.as_view(), name='create'),
    path('list/', ShopListView.as_view(), name='list'),
    path('detail/<int:pk>', ShopDetailView.as_view(), name='detail'),
]