from django.urls import path, re_path from . import views app_name = "sketches" urlpatterns = [ re_path( r'(?P[0-9]{4})/$', views.SketchYearArchiveView.as_view(), name="list_year" ), path( r'', views.SketchListView.as_view(), {'page':1}, name="list" ), path( r'/', views.SketchListView.as_view(), name="list" ), path( r'//.txt', views.SketchDetailViewTXT.as_view(), name="detail-txt" ), path( r'//', views.SketchDetailView.as_view(), name="detail" ), path( r'//', views.SketchMonthArchiveView.as_view(month_format='%m'), name="list_month" ), ]