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.
33 lines
1.0 KiB
33 lines
1.0 KiB
from django.conf.urls import url |
|
from cashonly.web import views |
|
|
|
urlpatterns = [ |
|
url(r'^$', views.overview, name='overview'), |
|
|
|
url(r'^product/(?P<pk>\d+)/$', views.ProductView.as_view(), |
|
name='product'), |
|
|
|
url(r'transactions/$', views.transactions, {'detailed': False, 'page': 1}, |
|
name='transactions'), |
|
|
|
url(r'transactions/(?P<page>\d+)/$', views.transactions, |
|
{'detailed': False}, name='transactions'), |
|
|
|
url(r'transactions/(?P<page>\d+)/detailed/$', views.transactions, |
|
{'detailed': True}, name='transactions_detailed'), |
|
|
|
url(r'products/((?P<category_id>\d+)/)?$', views.products, |
|
name='products'), |
|
|
|
url(r'buy/(?P<product_id>\d+)/$', views.buy, name='buy'), |
|
|
|
url(r'buy/(?P<product_id>\d+)/really/$', views.buy, |
|
{'confirm': True}, name='buy_really'), |
|
|
|
url(r'buy/thanks/$', views.buy_thanks, name='buy_thanks'), |
|
|
|
url(r'buy/error/$', views.buy_error, name='buy_error'), |
|
|
|
url(r'usersettings(/(?P<submit>\w+))?/$', views.usersettings, |
|
name='usersettings'), |
|
]
|
|
|