mamweb/galerie/urls.py

22 lines
835 B
Python
Raw Normal View History

2022-02-15 17:48:16 +01:00
"""
Soubor sloužící jako router, tj. zde se definují url adresy a na co ukazují:
2015-10-11 18:01:38 +02:00
2022-02-15 17:48:16 +01:00
- ``<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
2020-09-05 19:20:41 +02:00
from seminar.utils import org_required
2016-01-09 17:28:20 +01:00
from . import views
2015-10-11 18:01:38 +02:00
2016-01-09 17:28:20 +01:00
urlpatterns = [
path('<int:pk>/', views.nahled),
path('<int:pk>/<int:fotka>/', views.detail),
2020-09-05 19:20:41 +02:00
path('<int:galerie>/new/', org_required(views.new_galerie)),
2020-09-12 17:41:20 +02:00
path('<int:galerie>/plus/<int:subgalerie>/', org_required(views.plus_galerie)),
path('<int:galerie>/minus/<int:subgalerie>/', org_required(views.minus_galerie)),
2016-01-09 17:28:20 +01:00
]
2015-10-11 18:01:38 +02:00