from django.conf.urls import url from . import views app_name = 'manisite' urlpatterns = [ url(r'^(?P\d{4})-(?P\d{4})/', views.YearView.as_view(), name='year_view'), ]