|
Revision 409, 1.3 kB
(checked in by thomas, 11 months ago)
|
First check in of initial store functionality
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 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 |
) |
|---|