muistox/gallery/urls.py

16 lines
558 B
Python
Raw Normal View History

2024-12-28 12:21:29 +02:00
from django.urls import path
from . import views
app_name = 'gallery'
urlpatterns = [
2025-01-04 20:04:20 +02:00
2024-12-28 14:14:21 +02:00
path('', views.Main.as_view(), name='main_url'),
2025-01-05 22:34:39 +02:00
path('photostream/', views.PhotosList.as_view(), name='photos_url'),
2025-01-15 09:48:34 +02:00
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'),
2025-01-04 20:04:20 +02:00
path('albums/', views.AlbumsList.as_view(), name='albums_url'),
path('<path:redir_path>/', views.redirect_to_album, name='redirect_to_album'),
2024-12-28 14:14:21 +02:00
]