|
|
|
"""
|
|
|
|
Soubor sloužící jako „router“, tj. zde se definují url adresy a na co ukazují:
|
|
|
|
|
|
|
|
- ``<int:pk>/`` :func:`~galerie.views.nahled`
|
|
|
|
- ``<int:pk>/<int:fotka>/`` :func:`~galerie.views.detail`
|
|
|
|
- ``<int:galerie>/new/`` :func:`~galerie.views.new_galerie`
|
|
|
|
- ``<int:galerie>/plus/<int:subgalerie>/`` :func:`~galerie.views.plus_galerie`
|
|
|
|
- ``<int:galerie>/minus/<int:subgalerie>/`` :func:`~galerie.views.minus_galerie`
|
|
|
|
"""
|
|
|
|
from django.urls import path
|
|
|
|
from seminar.utils import org_required
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('<int:pk>/', views.nahled),
|
|
|
|
path('<int:pk>/<int:fotka>/', views.detail),
|
|
|
|
path('<int:galerie>/new/', org_required(views.new_galerie)),
|
|
|
|
path('<int:galerie>/plus/<int:subgalerie>/', org_required(views.plus_galerie)),
|
|
|
|
path('<int:galerie>/minus/<int:subgalerie>/', org_required(views.minus_galerie)),
|
|
|
|
]
|
|
|
|
|