You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
1.1 KiB

from django.conf.urls import patterns, url
from django.views.generic import RedirectView
from .views import *
urlpatterns = patterns('',
url(r'^$', RedirectView.as_view(
url='/', permanent=True), name='store_index'),
url(r'^cart/$', CartDetailView.as_view(),
name='store_cart_detail'),
url(r'^search/$', CategoryView.as_view(is_search=True),
name='store_search'),
url(r'^cart/add/$', CartAddView.as_view(
permanent=False), name='store_cart_add'),
url(r'^cart/remove/$', CartRemoveView.as_view(
permanent=False), name='store_cart_remove'),
url(r'^(?P<categories>.+)/product-(?P<slug>.+)/$',
ProductView.as_view(), name='store_product'),
url(r'^(?P<categories>.+)/$',
CategoryView.as_view(), name='store_category'),
)