from django.urls import path, re_path from .views import (CustomGalleryArchiveIndexView, CustomGalleryYearArchiveView, GalleryDownload, TagDetail) urlpatterns = [ path('tag//', TagDetail.as_view(), name='tag-detail'), path('gallery/', CustomGalleryArchiveIndexView.as_view(), name='pl-gallery-archive'), re_path(r'^gallery/(?P\d{4})/$', CustomGalleryYearArchiveView.as_view(), name='pl-gallery-archive-year'), path('gallery//download/', GalleryDownload.as_view(), name='gallery-download'), ]