# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import patterns, url
from shop.views.catalog import AddToCartView, CMSPageProductListView, ProductRetrieveView
from lpcshop.serializers import (
    ProductSummarySerializer,
    ProductDetailSerializer,
)

urlpatterns = patterns('',
    url(r'^$', CMSPageProductListView.as_view(
        serializer_class=ProductSummarySerializer,
    )),
    url(r'^(?P<slug>[\w-]+)$', ProductRetrieveView.as_view(
        serializer_class=ProductDetailSerializer
    )),
    url(r'^(?P<slug>[\w-]+)/add-to-cart', AddToCartView.as_view()),
)

5e0972a5c18dc487a88068a1da3a9f11edf5c8e1
<mask token>

<mask token>
urlpatterns = patterns('', url('^$', CMSPageProductListView.as_view(
    serializer_class=ProductSummarySerializer)), url('^(?P<slug>[\\w-]+)$',
    ProductRetrieveView.as_view(serializer_class=ProductDetailSerializer)),
    url('^(?P<slug>[\\w-]+)/add-to-cart', AddToCartView.as_view()))

from __future__ import unicode_literals
from django.conf.urls import patterns, url
from shop.views.catalog import AddToCartView, CMSPageProductListView, ProductRetrieveView
from lpcshop.serializers import ProductSummarySerializer, ProductDetailSerializer
urlpatterns = patterns('', url('^$', CMSPageProductListView.as_view(
    serializer_class=ProductSummarySerializer)), url('^(?P<slug>[\\w-]+)$',
    ProductRetrieveView.as_view(serializer_class=ProductDetailSerializer)),
    url('^(?P<slug>[\\w-]+)/add-to-cart', AddToCartView.as_view()))

# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf.urls import patterns, url
from shop.views.catalog import AddToCartView, CMSPageProductListView, ProductRetrieveView
from lpcshop.serializers import (
    ProductSummarySerializer,
    ProductDetailSerializer,
)

urlpatterns = patterns('',
    url(r'^$', CMSPageProductListView.as_view(
        serializer_class=ProductSummarySerializer,
    )),
    url(r'^(?P<slug>[\w-]+)$', ProductRetrieveView.as_view(
        serializer_class=ProductDetailSerializer
    )),
    url(r'^(?P<slug>[\w-]+)/add-to-cart', AddToCartView.as_view()),
)
