from django.urls import path, re_path from . import views app_name = "fieldnotes" urlpatterns = [ re_path( r'(?P[0-9]{4})/$', views.FieldNoteYearArchiveView.as_view(), name="list_year" ), path( r'', views.FieldNoteListView.as_view(), {'page': 1}, name="list" ), path( r'/', views.FieldNoteListView.as_view(), name="list" ), path( r'//.txt', views.FieldNoteDetailViewTXT.as_view(), name="detail-txt" ), path( r'//', views.FieldNoteDetailView.as_view(), name="detail" ), path( r'//', views.FieldNoteMonthArchiveView.as_view(month_format='%m'), name="list_month" ), ]