from django.conf.urls import patterns, url
from django.views.generic import TemplateView

from .views import CompetitionRegistrationView, SeasonDetailView

urlpatterns = patterns('',
    url(r'^$', CompetitionRegistrationView.as_view(),
        name='competitions_competition_register'),
    url(r'^registration/successful/', TemplateView.as_view(
        template_name='competitions/competition_registration_successful.html'),
        name='competitions_competition_register_success'),
    url(r'^series/(?P<pk>\d+)$', SeasonDetailView.as_view(),
        name='competitions_season_detail'),
)

from django.conf.urls import patterns, url
from django.views.generic import TemplateView

from .views import CompetitionRegistrationView, SeasonDetailView

urlpatterns = patterns('',
    url(r'^$', CompetitionRegistrationView.as_view(),
        name='competitions_competition_register'),
    url(r'^registration/successful/', TemplateView.as_view(
        template_name='competitions/competition_registration_successful.html'),
        name='competitions_competition_register_success'),
    url(r'^season/(?P<pk>\d+)$', SeasonDetailView.as_view(),
        name='competitions_season_detail'),
)

Correct url of the SeasonDetailView