from django.conf.urls 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'
        ),
    )
