50 lines
1.7 KiB
Python
50 lines
1.7 KiB
Python
from django.urls import path, include
|
|
|
|
from films.views import film, gallery, production_log
|
|
from films.views.api.asset import asset as api_asset, asset_zoom, asset_like
|
|
from films.views.api.comment import comment
|
|
|
|
urlpatterns = [
|
|
path(
|
|
'api/assets/<int:asset_pk>/',
|
|
include(
|
|
[
|
|
path('', api_asset, name='api-asset'),
|
|
path('zoom/', asset_zoom, name='api-asset-zoom'),
|
|
path('comment/', comment, name='api-asset-comment'),
|
|
path('like/', asset_like, name='api-asset-like'),
|
|
]
|
|
),
|
|
),
|
|
path('', film.film_list, name='film-list'),
|
|
path('<slug:film_slug>/', film.film_detail, name='film-detail'),
|
|
path('<slug:film_slug>/gallery/', gallery.collection_list, name='film-gallery'),
|
|
path(
|
|
'<slug:film_slug>/production-credit/',
|
|
film.ProductionCreditView.as_view(),
|
|
name='production-credit',
|
|
),
|
|
path(
|
|
'<slug:film_slug>/production-logs/',
|
|
production_log.ProductionLogView.as_view(),
|
|
name='film-production-logs',
|
|
),
|
|
path(
|
|
'<slug:film_slug>/production-logs/<int:year>/<str:month>/',
|
|
production_log.ProductionLogMonthView.as_view(),
|
|
name='film-production-logs-month',
|
|
),
|
|
path(
|
|
'<slug:film_slug>/production-log/<int:pk>/',
|
|
production_log.ProductionLogDetailView.as_view(),
|
|
name='film-production-log',
|
|
),
|
|
path('<slug:film_slug>/all-artwork/', gallery.AllAssets.as_view(), name='film-all-assets'),
|
|
path('<slug:film_slug>/pages/<slug:page_slug>/', film.flatpage, name='film-flatpage'),
|
|
path(
|
|
'<slug:film_slug>/<slug:collection_slug>/',
|
|
gallery.collection_detail,
|
|
name='collection-detail',
|
|
),
|
|
]
|