urls.py 1.71 KB
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
from django.conf.urls import url, include

from counter.views import *

urlpatterns = [
Skia's avatar
Skia committed
6
    url(r'^(?P<counter_id>[0-9]+)$', CounterMain.as_view(), name='details'),
7
    url(r'^(?P<counter_id>[0-9]+)/click/(?P<user_id>[0-9]+)$', CounterClick.as_view(), name='click'),
Skia's avatar
Skia committed
8
    url(r'^(?P<counter_id>[0-9]+)/cash_summary$', CounterCashSummaryView.as_view(), name='cash_summary'),
Skia's avatar
Skia committed
9
    url(r'^(?P<counter_id>[0-9]+)/login$', CounterLogin.as_view(), name='login'),
Skia's avatar
Skia committed
10
    url(r'^(?P<counter_id>[0-9]+)/logout$', CounterLogout.as_view(), name='logout'),
Skia's avatar
Skia committed
11
    url(r'^admin/(?P<counter_id>[0-9]+)$', CounterEditView.as_view(), name='admin'),
12
    url(r'^admin/(?P<counter_id>[0-9]+)/prop$', CounterEditPropView.as_view(), name='prop_admin'),
Skia's avatar
Skia committed
13
14
15
    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'),
Skia's avatar
Skia committed
16
17
18
    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'),
Skia's avatar
Skia committed
19
20
21
    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'),
Skia's avatar
Skia committed
22
23
    url(r'^admin/selling/(?P<selling_id>[0-9]+)/delete$', SellingDeleteView.as_view(), name='selling_delete'),
    url(r'^admin/refilling/(?P<refilling_id>[0-9]+)/delete$', RefillingDeleteView.as_view(), name='refilling_delete'),
Skia's avatar
Skia committed
24
25
26
]