<s> from __future__ import unicode_literals <EOL> from django . conf . urls import patterns , url <EOL> from shop . views . catalog import AddToCartView , CMSPageProductListView , ProductRetrieveView <EOL> from shop . search . views import SearchView <EOL> from myshop . serializers import ( ProductSummarySerializer , ProductDetailSerializer , <EOL> AddSmartCardToCartSerializer , AddSmartPhoneToCartSerializer , CatalogSearchSerializer ) <EOL> urlpatterns = patterns ( '<STR_LIT>' , <EOL> url ( r'<STR_LIT>' , CMSPageProductListView . as_view ( <EOL> serializer_class = ProductSummarySerializer , <EOL> ) ) , <EOL> url ( r'<STR_LIT>' , SearchView . as_view ( <EOL> serializer_class = CatalogSearchSerializer , <EOL> ) ) , <EOL> url ( r'<STR_LIT>' , ProductRetrieveView . as_view ( <EOL> serializer_class = ProductDetailSerializer , <EOL> ) ) , <EOL> url ( r'<STR_LIT>' , AddToCartView . as_view ( <EOL> serializer_class = AddSmartCardToCartSerializer , <EOL> ) ) , <EOL> url ( r'<STR_LIT>' , AddToCartView . as_view ( <EOL> serializer_class = AddSmartPhoneToCartSerializer , <EOL> ) ) , <EOL> ) </s>
