Continue the counter views

This commit is contained in:
Skia
2016-04-15 11:50:31 +02:00
parent c1a151d754
commit 478d1ed876
4 changed files with 69 additions and 19 deletions

View File

@ -3,7 +3,8 @@ from django.conf.urls import url, include
from counter.views import *
urlpatterns = [
url(r'^(?P<counter_id>[0-9]+)$', CounterDetail.as_view(), name='details'),
url(r'^(?P<counter_id>[0-9]+)$', CounterMain.as_view(), name='details'),
url(r'^(?P<counter_id>[0-9]+)/click$', CounterClick.as_view(), name='click'),
url(r'^(?P<counter_id>[0-9]+)/login$', CounterLogin.as_view(), name='login'),
url(r'^(?P<counter_id>[0-9]+)/logout$', CounterLogout.as_view(), name='logout'),
url(r'^admin/(?P<counter_id>[0-9]+)$', CounterEditView.as_view(), name='admin'),