From 036af434c643620122b1e148e3fa6e51bf779614 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Fri, 2 Aug 2024 19:25:25 +0200 Subject: [PATCH] =?UTF-8?q?Odd=C4=9Blen=C3=AD=20urlpatterns=20konkr=C3=A9t?= =?UTF-8?q?n=C3=ADho=20sousu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- soustredeni/urls.py | 66 +++++++++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/soustredeni/urls.py b/soustredeni/urls.py index 4d07f660..7ae79cdd 100644 --- a/soustredeni/urls.py +++ b/soustredeni/urls.py @@ -2,7 +2,7 @@ from django.urls import path, include from . import views from seminar.utils import org_required -# prefix = 'soustredeni/' +# prefix = soustredeni/ urlpatterns = [ path( 'probehlo/', @@ -10,32 +10,40 @@ urlpatterns = [ name='seminar_seznam_soustredeni' ), path( - '/seznam_ucastniku', - org_required(views.SoustredeniUcastniciView.as_view()), - name='soustredeni_ucastnici' - ), - path( - '/maily_ucastniku', - org_required(views.SoustredeniMailyUcastnikuView.as_view()), - name='maily_ucastniku' - ), - path( - '/export_ucastniku', - org_required(views.soustredeniUcastniciExportView), - name='soustredeni_ucastnici_export' - ), - path( - '/stvrzenky.pdf', - org_required(views.soustredeniStvrzenkyView), - name='soustredeni_ucastnici_stvrzenky' - ), - path( - '/obalky.pdf', - org_required(views.soustredeniObalkyView), - name='seminar_soustredeni_obalky' - ), - path( - '/fotogalerie/', - include('galerie.urls') - ), + '/', + include( + # prefix = 'soustredeni//' + [ + path( + 'seznam_ucastniku', + org_required(views.SoustredeniUcastniciView.as_view()), + name='soustredeni_ucastnici' + ), + path( + 'maily_ucastniku', + org_required(views.SoustredeniMailyUcastnikuView.as_view()), + name='maily_ucastniku' + ), + path( + 'export_ucastniku', + org_required(views.soustredeniUcastniciExportView), + name='soustredeni_ucastnici_export' + ), + path( + 'stvrzenky.pdf', + org_required(views.soustredeniStvrzenkyView), + name='soustredeni_ucastnici_stvrzenky' + ), + path( + 'obalky.pdf', + org_required(views.soustredeniObalkyView), + name='seminar_soustredeni_obalky' + ), + path( + 'fotogalerie/', + include('galerie.urls') + ), + ] + ) + ) ]