photo26/photologue_custom/urls.py
2021-10-13 11:23:58 +02:00

11 lines
558 B
Python

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