Пример #1
0
from django.conf.urls.defaults import patterns, url

from shop.views.order import OrderListView, OrderDetailView

urlpatterns = patterns(
    '',
    url(r'^$', OrderListView.as_view(), name='order_list'),
    url(r'^(?P<slug>.+?)/$', OrderDetailView.as_view(), name='order_detail'),
)
Пример #2
0
from django.conf.urls.defaults import patterns, url

from shop.views.order import OrderListView, OrderDetailView

urlpatterns = patterns('',
    url(r'^$',
        OrderListView.as_view(),
        name='order_list'),
    url(r'^(?P<pk>\d+)/$',
        OrderDetailView.as_view(),
        name='order_detail'),
    )

Пример #3
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import url

from shop.views.order import OrderListView, OrderDetailView


# Pats are automatically inserted into urlpatterns in catalog urls.py
# so urlpatterns are not specified here.
pats = [
    url(r'^orders/$',
        OrderListView.as_view(template_name='shop/order_list.html'),
        name='order_list'),
    url(r'^orders/(?P<pk>\d+)/$',
        OrderDetailView.as_view(template_name='shop/order_detail.html'),
        name='order_detail'),
]
Пример #4
0
        name='cart_item' ),
    
    # Checkout
    url(r'^checkout/ship/$', SelectShippingView.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/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'),
)
Пример #5
0
    url(r"^(?P<slug>[0-9A-Za-z-_.//]+).html$", CigaretteListView.as_view(), name="manufacturer_product_list"),
    url(r"^kat_(?P<slug>[0-9A-Za-z-_.//]+).php$", ProductDetailView.as_view(), name="product_detail"),
    (r"^pay/", include("shop.payment.urls")),
    (r"^ship/", include("shop.shipping.urls")),
    # Checkout
    url(
        r"^checkout/$",
        MyCheckoutSelectionView.as_view(),
        name="checkout_selection",  # First step of the checkout process
    ),
    url(
        r"^checkout/ship/$",
        ShippingBackendRedirectView.as_view(),
        name="checkout_shipping",  # First 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
    ),
    # Orders
    url(r"^orders/$", OrderListView.as_view(), name="order_list"),
    url(r"^orders/(?P<pk>\d+)/$", OrderDetailView.as_view(), name="order_detail"),
    (r"^shop/cart/", include("apps.myshop.cart_urls")),
)