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

from counter.views import *

urlpatterns = [
    url(r'^(?P<counter_id>[0-9]+)$', CounterDetail.as_view(), name='details'),
Skia's avatar
Skia committed
7
    url(r'^(?P<counter_id>[0-9]+)/login$', CounterLogin.as_view(), name='login'),
Skia's avatar
Skia committed
8
    url(r'^(?P<counter_id>[0-9]+)/logout$', CounterLogout.as_view(), name='logout'),
Skia's avatar
Skia committed
9 10 11 12
    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'),
Skia's avatar
Skia committed
13 14 15
]