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

from election.views import *

urlpatterns = [
Sli's avatar
Sli committed
6
    url(r'^$', ElectionsListView.as_view(), name='list'),
7
    url(r'^create$', PageCreateView.as_view(), name='create'),
Sli's avatar
Sli committed
8
    url(r'^(?P<election_id>[0-9]+)/detail$', ElectionDetailView.as_view(), name='detail'),
Sli's avatar
Sli committed
9
]