2016-03-28 12:54:35 +00:00
|
|
|
from django.conf.urls import url, include
|
|
|
|
|
|
|
|
from counter.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-04-15 09:50:31 +00:00
|
|
|
url(r'^(?P<counter_id>[0-9]+)$', CounterMain.as_view(), name='details'),
|
2016-04-18 02:37:37 +00:00
|
|
|
url(r'^(?P<counter_id>[0-9]+)/click/(?P<user_id>[0-9]+)$', CounterClick.as_view(), name='click'),
|
2016-03-31 08:36:00 +00:00
|
|
|
url(r'^(?P<counter_id>[0-9]+)/login$', CounterLogin.as_view(), name='login'),
|
2016-04-12 08:00:47 +00:00
|
|
|
url(r'^(?P<counter_id>[0-9]+)/logout$', CounterLogout.as_view(), name='logout'),
|
2016-03-29 08:30:24 +00:00
|
|
|
url(r'^admin/(?P<counter_id>[0-9]+)$', CounterEditView.as_view(), name='admin'),
|
|
|
|
url(r'^admin$', CounterListView.as_view(), name='admin_list'),
|
|
|
|
url(r'^admin/new$', CounterCreateView.as_view(), name='new'),
|
|
|
|
url(r'^admin/delete/(?P<counter_id>[0-9]+)$', CounterDeleteView.as_view(), name='delete'),
|
2016-07-27 15:23:02 +00:00
|
|
|
url(r'^admin/product/list$', ProductListView.as_view(), name='product_list'),
|
|
|
|
url(r'^admin/product/create$', ProductCreateView.as_view(), name='new_product'),
|
|
|
|
url(r'^admin/product/(?P<product_id>[0-9]+)$', ProductEditView.as_view(), name='product_edit'),
|
2016-07-27 18:05:45 +00:00
|
|
|
url(r'^admin/producttype/list$', ProductTypeListView.as_view(), name='producttype_list'),
|
|
|
|
url(r'^admin/producttype/create$', ProductTypeCreateView.as_view(), name='new_producttype'),
|
|
|
|
url(r'^admin/producttype/(?P<type_id>[0-9]+)$', ProductTypeEditView.as_view(), name='producttype_edit'),
|
2016-03-28 12:54:35 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|