from django.conf.urls import patterns, url, include

from django.views.generic import TemplateView

from .views import (HomeView, AuthorityEdit, RandomAuthority,
                    SkippedAuthoritiesView, DataView)


urlpatterns = [
    url(r'^$',
        HomeView.as_view(),
        name="home"),
    url(r'random_election', RandomAuthority.as_view(), name="random_election"),
    url(r'election/(?P<pk>.*)/', AuthorityEdit.as_view(), name="authority"),
    url(
        r'admin/skipped/',
        SkippedAuthoritiesView.as_view(),
        name="skipped_elections"
    ),
    url(r'data/', DataView.as_view()),
]
