muistox/gallery/urls.py

22 lines
509 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
# Main page
2024-12-28 14:14:21 +02:00
path('', views.Main.as_view(), name='main_url'),
2025-01-05 17:26:09 +02:00
# Yksittäinen kuva albumissa:
path('albums/<path:album_path>/<int:photo_slug>/', views.PhotoDetail.as_view(), name="photo_url"),
2025-01-04 20:04:20 +02:00
# Albumin yksityiskohdat:
path('albums/<path:album_slug>/', views.AlbumDetail.as_view(), name="album_url"),
2025-01-05 17:26:09 +02:00
2025-01-04 20:04:20 +02:00
# Albumien lista:
path('albums/', views.AlbumsList.as_view(), name='albums_url'),
2024-12-28 14:14:21 +02:00
]