root/trunk/djedna/store/urls.py

Revision 409, 1.3 kB (checked in by thomas, 11 months ago)

First check in of initial store functionality

Line 
1 # (c) Copyright 2008 Thomas Bohmbach, Jr.
2 #
3 # This file is part of DJ Edna.
4 #
5 # DJ Edna is free software: you can redistribute it and/or modify it under the
6 # terms of the GNU General Public License as published by the Free
7 # Software Foundation, either version 3 of the License, or (at your option)
8 # any later version.
9 #
10 # DJ Edna is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 # more details.
14 #
15 # You should have received a copy of the GNU General Public License along with
16 # DJ Edna.  If not, see <http://www.gnu.org/licenses/>.
17
18 from django.conf.urls.defaults import *
19
20
21 urlpatterns = patterns('',
22     (r'^product/$', 'djedna.store.views.product_list', {}, 'product_list'),
23     (r'^product/buy/$', 'djedna.store.views.buy_products_form', {}, 'buy_products_form'),
24     (r'^product/(?P<product_id>[\d]+)/$', 'djedna.store.views.product_detail', {}, 'product_detail'),
25     (r'^product/(?P<product_id>[\d]+)/buy/$', 'djedna.store.views.buy_product_form', {}, 'buy_product_form'),
26     (r'^product/(?P<product_id>[\d]+)/buy/(?P<price>[\d.]+)$', 'djedna.store.views.buy_user_access_permit', {}, 'buy_user_access_permit'),
27     (r'^cart_item/remove/', 'djedna.store.views.remove_from_cart', {}, 'remove_from_cart'),
28 )
Note: See TracBrowser for help on using the browser.