Source

gnocchi-catalogue / catalogue / urls.py

from django.conf.urls.defaults import patterns, url

urlpatterns = patterns('gnocchi_catalogue.views',
    url(r'^cart/update/$', 'cart_update', name='cart_update'),
    url(r'^cart/remove/$', 'cart_remove', name='cart_remove'),
    url(r'^cart/empty/$', 'cart_empty', name='cart_empty'),
    url(r'^cart/add/$', 'cart_add', name='cart_add'),
    url(r'^cart/$', 'cart_details', name='cart_details'),

    url(r'^view/(?P<object_id>\d+)/$', 'product_detail', name='product_detail'),
    url(r'^products/(?P<tags>.+)/$', 'product_list'),
    url(r'^$', 'product_list', name='product_list'),
)