urls.py 633 Bytes
Newer Older
1
from django.conf.urls import url
Sli's avatar
Sli committed
2 3 4 5

from election.views import *

urlpatterns = [
Sli's avatar
Sli committed
6
    url(r'^$', ElectionsListView.as_view(), name='list'),
7 8
    url(r'^create$', ElectionCreateView.as_view(), name='create'),
    url(r'^list/create$', ElectionListCreateView.as_view(), name='create_list'),
Sli's avatar
Sli committed
9 10
    url(r'^role/create$', RoleCreateView.as_view(), name='create_role'),
    url(r'^(?P<election_id>[0-9]+)/candidate$', CandidatureCreateView.as_view(), name='candidate'),
11
    url(r'^(?P<election_id>[0-9]+)/vote$', VoteFormView.as_view(), name='vote'),
Sli's avatar
Sli committed
12
    url(r'^(?P<election_id>[0-9]+)/detail$', ElectionDetailView.as_view(), name='detail'),
Sli's avatar
Sli committed
13
]