More hierarchy to URL
This commit is contained in:
parent
c2613af9a6
commit
ff04978a95
5 changed files with 26 additions and 26 deletions
12
api/urls.py
12
api/urls.py
|
@ -4,15 +4,15 @@ from personalni.utils import org_required
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# Export škol
|
# Export škol
|
||||||
path('api/export/skoly/', views.exportSkolView, name='export_skoly'),
|
path('export/skoly/', views.exportSkolView, name='export_skoly'),
|
||||||
|
|
||||||
|
|
||||||
# Autocomplete
|
# Autocomplete
|
||||||
path('api/autocomplete/skola/', views.SkolaAutocomplete.as_view(), name='autocomplete_skola'),
|
path('autocomplete/skola/', views.SkolaAutocomplete.as_view(), name='autocomplete_skola'),
|
||||||
path('api/autocomplete/resitel/', org_required(views.ResitelAutocomplete.as_view()), name='autocomplete_resitel'),
|
path('autocomplete/resitel/', org_required(views.ResitelAutocomplete.as_view()), name='autocomplete_resitel'),
|
||||||
path('api/autocomplete/resitel_public/', views.PublicResitelAutocomplete.as_view(), name='autocomplete_resitel_public'),
|
path('autocomplete/resitel_public/', views.PublicResitelAutocomplete.as_view(), name='autocomplete_resitel_public'),
|
||||||
path('api/autocomplete/problem/odevzdatelny', views.OdevzdatelnyProblemAutocomplete.as_view(), name='autocomplete_problem_odevzdatelny'),
|
path('autocomplete/problem/odevzdatelny', views.OdevzdatelnyProblemAutocomplete.as_view(), name='autocomplete_problem_odevzdatelny'),
|
||||||
path('api/autocomplete/problem/vsechny', views.ProblemAutocomplete.as_view(), name='autocomplete_problem'),
|
path('autocomplete/problem/vsechny', views.ProblemAutocomplete.as_view(), name='autocomplete_problem'),
|
||||||
|
|
||||||
# Ceka na autocomplete v3
|
# Ceka na autocomplete v3
|
||||||
# path('autocomplete/organizatori/',
|
# path('autocomplete/organizatori/',
|
||||||
|
|
|
@ -3,8 +3,8 @@ from personalni.utils import org_required
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('korektury/', org_required(views.KorekturySeskupeneListView.as_view()), name='korektury_list'),
|
path('', org_required(views.KorekturySeskupeneListView.as_view()), name='korektury_list'),
|
||||||
path('korektury/neseskupene/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury_neseskupene_list'),
|
path('neseskupene/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury_neseskupene_list'),
|
||||||
path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury_stare_list'),
|
path('zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury_stare_list'),
|
||||||
path('korektury/<int:pdf>/', org_required(views.KorekturyView.as_view()), name='korektury'),
|
path('<int:pdf>/', org_required(views.KorekturyView.as_view()), name='korektury'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -24,13 +24,13 @@ urlpatterns = [
|
||||||
path('', include('odevzdavatko.urls')),
|
path('', include('odevzdavatko.urls')),
|
||||||
|
|
||||||
# Korekturovaci aplikace (ma vlastni podadresare)
|
# Korekturovaci aplikace (ma vlastni podadresare)
|
||||||
path('', include('korektury.urls')),
|
path('korektury/', include('korektury.urls')),
|
||||||
|
|
||||||
# Prednaskova aplikace (ma vlastni podadresare)
|
# Prednaskova aplikace (ma vlastni podadresare)
|
||||||
path('', include('prednasky.urls')),
|
path('prednasky/', include('prednasky.urls')),
|
||||||
|
|
||||||
# Soustredkova aplikace (ma vlastni podadresare)
|
# Soustredkova aplikace (ma vlastni podadresare)
|
||||||
path('', include('soustredeni.urls')),
|
path('soustredeni/', include('soustredeni.urls')),
|
||||||
|
|
||||||
# Personalni aplikace (ma vlastni podadresare)
|
# Personalni aplikace (ma vlastni podadresare)
|
||||||
# (profil, osobní údaje, ..., ne autentizace, viz dále)
|
# (profil, osobní údaje, ..., ne autentizace, viz dále)
|
||||||
|
@ -40,7 +40,7 @@ urlpatterns = [
|
||||||
path('', include('various.autentizace.urls')),
|
path('', include('various.autentizace.urls')),
|
||||||
|
|
||||||
# Api (ma vlastni podadresare) (autocomplete apod.)
|
# Api (ma vlastni podadresare) (autocomplete apod.)
|
||||||
path('', include('api.urls')),
|
path('api/', include('api.urls')),
|
||||||
|
|
||||||
# treenode (ma vlastni podadresare)
|
# treenode (ma vlastni podadresare)
|
||||||
path('', include('treenode.urls')),
|
path('', include('treenode.urls')),
|
||||||
|
|
|
@ -4,21 +4,21 @@ from . import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(
|
path(
|
||||||
'prednasky/',
|
'',
|
||||||
resitel_or_org_required(views.newPrednaska)
|
resitel_or_org_required(views.newPrednaska)
|
||||||
),
|
),
|
||||||
path('prednasky/hotovo', views.Prednaska_hotovo),
|
path('hotovo', views.Prednaska_hotovo),
|
||||||
path(
|
path(
|
||||||
'prednasky/metaseznam_prednasek',
|
'metaseznam_prednasek',
|
||||||
org_required(views.MetaSeznamListView.as_view()),
|
org_required(views.MetaSeznamListView.as_view()),
|
||||||
name='metaseznam-list'),
|
name='metaseznam-list'),
|
||||||
path(
|
path(
|
||||||
'prednasky/seznam_prednasek/<int:seznam>/export',
|
'seznam_prednasek/<int:seznam>/export',
|
||||||
org_required(views.SeznamExportView),
|
org_required(views.SeznamExportView),
|
||||||
name='seznam-export'
|
name='seznam-export'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'prednasky/seznam_prednasek/<int:seznam>/',
|
'seznam_prednasek/<int:seznam>/',
|
||||||
org_required(views.SeznamListView.as_view()),
|
org_required(views.SeznamListView.as_view()),
|
||||||
name='seznam-list'
|
name='seznam-list'
|
||||||
),
|
),
|
||||||
|
|
|
@ -4,37 +4,37 @@ from personalni.utils import org_required
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path(
|
path(
|
||||||
'soustredeni/probehlo/',
|
'probehlo/',
|
||||||
views.SoustredeniListView.as_view(),
|
views.SoustredeniListView.as_view(),
|
||||||
name='seminar_seznam_soustredeni'
|
name='seminar_seznam_soustredeni'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'soustredeni/<int:soustredeni>/seznam_ucastniku',
|
'<int:soustredeni>/seznam_ucastniku',
|
||||||
org_required(views.SoustredeniUcastniciView.as_view()),
|
org_required(views.SoustredeniUcastniciView.as_view()),
|
||||||
name='soustredeni_ucastnici'
|
name='soustredeni_ucastnici'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'soustredeni/<int:soustredeni>/maily_ucastniku',
|
'<int:soustredeni>/maily_ucastniku',
|
||||||
org_required(views.SoustredeniMailyUcastnikuView.as_view()),
|
org_required(views.SoustredeniMailyUcastnikuView.as_view()),
|
||||||
name='maily_ucastniku'
|
name='maily_ucastniku'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'soustredeni/<int:soustredeni>/export_ucastniku',
|
'<int:soustredeni>/export_ucastniku',
|
||||||
org_required(views.soustredeniUcastniciExportView),
|
org_required(views.soustredeniUcastniciExportView),
|
||||||
name='soustredeni_ucastnici_export'
|
name='soustredeni_ucastnici_export'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'soustredeni/<int:soustredeni>/stvrzenky.pdf',
|
'<int:soustredeni>/stvrzenky.pdf',
|
||||||
org_required(views.soustredeniStvrzenkyView),
|
org_required(views.soustredeniStvrzenkyView),
|
||||||
name='soustredeni_ucastnici_stvrzenky'
|
name='soustredeni_ucastnici_stvrzenky'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'soustredeni/<int:soustredeni>/obalky.pdf',
|
'<int:soustredeni>/obalky.pdf',
|
||||||
org_required(views.soustredeniObalkyView),
|
org_required(views.soustredeniObalkyView),
|
||||||
name='seminar_soustredeni_obalky'
|
name='seminar_soustredeni_obalky'
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
'soustredeni/<int:soustredeni>/fotogalerie/',
|
'<int:soustredeni>/fotogalerie/',
|
||||||
include('galerie.urls')
|
include('galerie.urls')
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue