-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathurls.py
27 lines (23 loc) · 1.24 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^store/', include('store.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin', include(admin.site.urls)),
url(r'^items/(?P<pattern_id>\d+)', 'store.views.pattern_page', name='pattern_page'),
(r'^filter/(?P<predicate>.+)', 'store.views.filtered'),
(r'^payment/(?P<result>.+)', 'store.views.payment'),
url(r'^search', 'store.views.search_results', name='search'),
url(r'^cart/add', 'store.views.add_to_cart', name='add_to_cart'),
url(r'^cart/show', 'store.views.show_cart', name='show_cart'),
url(r'^cart/remove/(?P<item_id>\d+)', 'store.views.remove_from_cart', name='remove_from_cart'),
url(r'^checkout/success', 'store.views.checkout_success', name='checkout_success'),
url(r'^checkout/canceled', 'store.views.checkout_canceled', name='checkout_canceled'),
url(r'^order/status', 'store.views.order_status', name='order_status'),
(r'', 'store.views.frontpage'),
)