muistox/gallery/urls.py
2025-01-15 09:48:34 +02:00

15 lines
476 B
Python

from django.urls import path
from . import views
app_name = 'gallery'
urlpatterns = [
path('', views.Main.as_view(), name='main_url'),
path('photostream/', views.PhotosList.as_view(), name='photos_url'),
path('albums/<path:album_slug>/<int:photo_slug>/', views.PhotoDetail.as_view(), name='photo_url'),
path('albums/<path:album_slug>/', views.AlbumDetail.as_view(), name='album_url'),
path('albums/', views.AlbumsList.as_view(), name='albums_url'),
]