<reponame>PyNSK/pynsk.ru
# coding: utf-8
from django.conf.urls import patterns, url, include

from .views import EventPage, TalkPage, SpeakerPage, SpeakerList, \
    EventsList, AboutPage, LivePage, Py3Page, \
    TutorialPage, TutorialList, ajax_vote, VoteResults, IndexPage

urlpatterns = patterns(
    '',
    url('^$', IndexPage.as_view(), name='index'),
    url('^about/$', AboutPage.as_view(), name='about'),
    url('^live/$', LivePage.as_view(), name='live'),
    url('^py3/$', Py3Page.as_view(), name='py3'),
    url('^meetup/$', EventsList.as_view(), name='events'),
    url('^meetup/(?P<number>\d+)/$', EventPage.as_view(), name='event'),
    url('^meetup/(?P<event_number>\d+)/(?P<talk_slug>[\w-]+)/$', TalkPage.as_view(), name='talk'),
    url('^speakers/$', SpeakerList.as_view(), name='speakers'),
    url('^speakers/(?P<slug>[\w-]+)/$', SpeakerPage.as_view(), name='speaker'),
    url('^tutorials/$', TutorialList.as_view(), name='tutorials'),
    url('^tutorials/(?P<slug>[\w-]+)/$', TutorialPage.as_view(), name='tutorial'),
    url('^vote/(?P<talk_id>\d+)/$', ajax_vote, name='vote'),
    url('^prize/$', VoteResults.as_view(), name='vote-results'),

    # legacy
    url('', include('apps.meetup.legacy.urls')),
)
