from django.conf.urls import patterns, url
from .views import (
    HomeView,
    TournamentListView,
    TournamentDetailView,
    TournamentCreateView,
    TournamentResultsView,
)

urlpatterns = patterns(
    '',
    # urls for Tournament
    url(
        r'^$',
        HomeView.as_view(),
        name='core_home_view'),
    url(
        r'^tournament/$',
        TournamentListView.as_view(),
        name='core_tournament_list'
    ),
    url(
        r'^tournament/create/$',
        TournamentCreateView.as_view(),
        name='core_tournament_create'
    ),
    url(
        r'^tournament/(?P<pk>\d+)/results/$',
        TournamentResultsView.as_view(),
        name='core_tournament_results'
    ),
    url(
        r'^tournament/(?P<pk>\d+)/$',
        TournamentDetailView.as_view(),
        name='core_tournament_detail'
    ),
)

from django.conf.urls import patterns, url
from .views import (
    HomeView,
    TournamentListView,
    TournamentDetailView,
    TournamentCreateView,
    TournamentResultsView,
)

urlpatterns = patterns(
    '',
    # urls for Tournament
    url(
        r'^$',
        HomeView.as_view(),
        name='core_home_view'),
    url(
        r'^tournament/$',
        TournamentListView.as_view(),
        name='core_tournament_list'
    ),
    url(
        r'^tournament/create/$',
        TournamentCreateView.as_view(),
        name='core_tournament_create'
    ),
    url(
        r'^tournament/(?P<pk>\d+)/results/$',
        TournamentResultsView.as_view(),
        name='core_tournament_results'
    ),
    url(
        r'^tournament/(?P<pk>\d+)/$',
        TournamentDetailView.as_view(),
        name='core_tournament_detail'
    ),
)

# urls for Tournament