2022-02-15 17:48:16 +01:00
|
|
|
"""
|
|
|
|
Soubor sloužící jako „router“, tj. zde se definují url adresy a na co ukazují:
|
|
|
|
|
|
|
|
- Organizátoři
|
|
|
|
- ``o-nas/organizatori/`` (organizatori) :class:`~seminar.views.views_all.CojemamOrganizatoriView`
|
|
|
|
- ``o-nas/organizatori/organizovali/`` (stari_organizatori) :class:`~seminar.views.views_all.CojemamOrganizatoriStariView`
|
|
|
|
- Archiv
|
|
|
|
- ``archiv/rocniky/`` (seminar_archiv_rocniky) :class:`~seminar.views.views_all.ArchivView`
|
|
|
|
- ``archiv/temata/`` (seminar_archiv_temata) :class:`~seminar.views.views_all.ArchivTemataView`
|
|
|
|
- ``rocnik/<int:rocnik>/`` (seminar_rocnik) :class:`~seminar.views.views_all.RocnikView`
|
|
|
|
- ``cislo/<int:rocnik>.<str:cislo>/`` (seminar_cislo) :class:`~seminar.views.views_all.CisloView`
|
|
|
|
- ``problem/<int:pk>/`` (seminar_problem) :func:`~seminar.views.views_all.problemView`
|
|
|
|
- Zadání
|
|
|
|
- ``aktualni/zadani/`` (seminar_aktualni_zadani) :func:`~seminar.views.views_all.AktualniZadaniView`
|
|
|
|
- ``aktualni/vysledkova-listina/`` (seminar_aktualni_vysledky) :func:`~seminar.views.views_all.ZadaniAktualniVysledkovkaView`
|
|
|
|
- ``aktualni/rocnik/`` (seminar_aktualni_rocnik) :class:`~seminar.views.views_all.AktualniRocnikRedirectView`
|
|
|
|
- Články
|
|
|
|
- ``archiv/clanky/`` (clanky_resitel) :class:`~seminar.views.views_all.ClankyResitelView`
|
|
|
|
- Orgovské stránky
|
|
|
|
- ``rocnik/<int:rocnik>/vysledkovka.tex`` (seminar_rocnik_vysledkovka) :class:`~seminar.views.views_all.RocnikVysledkovkaView`
|
|
|
|
- ``rocnik/<int:rocnik>/resitele.csv`` (seminar_rocnik_resitele_csv) :func:`~seminar.views.views_all.resiteleRocnikuCsvExportView`
|
|
|
|
- ``cislo/<int:rocnik>.<str:cislo>/vysledkovka.tex`` (seminar_cislo_vysledkovka) :class:`~seminar.views.views_all.CisloVysledkovkaView`
|
|
|
|
- ``cislo/<int:rocnik>.<str:cislo>/obalky.pdf`` (seminar_cislo_obalky) :func:`~seminar.views.views_all.cisloObalkyView`
|
|
|
|
- ``cislo/<int:rocnik>.<str:cislo>/tituly.tex`` (seminar_cislo_titul) :func:`~seminar.views.views_all.TitulyView`
|
|
|
|
- ``stav`` (stav_databaze) :func:`~seminar.views.views_all.StavDatabazeView`
|
|
|
|
- ``cislo/<int:rocnik>.<str:cislo>/obalkovani`` (seminar_cislo_resitel_obalkovani) :class:`~seminar.views.views_all.ObalkovaniView`
|
|
|
|
- ``cislo/<int:trocnik>.<str:tcislo>/odmeny/<int:frocnik>.<str:fcislo>/`` (seminar_archiv_odmeny) :class:`~seminar.views.views_all.OdmenyView`
|
|
|
|
- Další
|
|
|
|
- `` `` (titulni_strana) :class:`~seminar.views.views_all.TitulniStranaView`
|
|
|
|
- ``jak-resit/`` (jak_resit) :class:`~seminar.views.views_all.JakResitView`
|
|
|
|
- ``stare-novinky/`` (stare_novinky) :class:`~seminar.views.views_all.StareNovinkyView`
|
|
|
|
"""
|
2020-09-18 20:45:47 +02:00
|
|
|
from django.urls import path, include, re_path
|
2021-10-05 00:25:15 +02:00
|
|
|
from . import views
|
2021-10-08 10:36:59 +02:00
|
|
|
from .utils import org_required
|
2016-01-06 19:36:15 +01:00
|
|
|
|
2016-01-09 17:28:20 +01:00
|
|
|
urlpatterns = [
|
2020-03-19 00:59:31 +01:00
|
|
|
# path('aktualni/temata/', views.TemataRozcestnikView),
|
|
|
|
# path('<int:rocnik>/t<int:tematko>/', views.TematkoView),
|
2019-12-05 00:50:04 +01:00
|
|
|
|
2019-05-11 01:15:05 +02:00
|
|
|
# Organizatori
|
2021-03-02 21:35:03 +01:00
|
|
|
path('o-nas/organizatori/', views.CojemamOrganizatoriView.as_view(), name='organizatori'),
|
|
|
|
path('o-nas/organizatori/organizovali/', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'),
|
2015-06-03 14:16:30 +02:00
|
|
|
|
2019-05-11 01:15:05 +02:00
|
|
|
# Archiv
|
2021-01-19 20:08:41 +01:00
|
|
|
path('archiv/rocniky/', views.ArchivView.as_view(), name="seminar_archiv_rocniky"),
|
|
|
|
path('archiv/temata/', views.ArchivTemataView.as_view(), name="seminar_archiv_temata"),
|
2015-06-08 22:38:13 +02:00
|
|
|
|
2019-06-20 21:00:23 +02:00
|
|
|
path('rocnik/<int:rocnik>/', views.RocnikView.as_view(), name='seminar_rocnik'),
|
2020-10-27 19:51:36 +01:00
|
|
|
path('cislo/<int:rocnik>.<str:cislo>/', views.CisloView.as_view(), name='seminar_cislo'),
|
2021-09-07 14:42:56 +02:00
|
|
|
path('problem/<int:pk>/', views.problemView, name='seminar_problem'),
|
2015-06-04 10:13:52 +02:00
|
|
|
|
2019-05-11 01:15:05 +02:00
|
|
|
# Zadani
|
2021-03-09 22:44:19 +01:00
|
|
|
# path('aktualni/zadani/', views.AktualniZadaniView.as_view(), name='seminar_aktualni_zadani'), # Dočasně ad-hoc jednoduchá věc.
|
2021-03-02 21:35:03 +01:00
|
|
|
path('aktualni/zadani/', views.AktualniZadaniView, name='seminar_aktualni_zadani'),
|
|
|
|
#path('aktualni/temata/', views.ZadaniTemataView, name='seminar_temata'),
|
2021-03-02 22:14:52 +01:00
|
|
|
path('aktualni/vysledkova-listina/', views.ZadaniAktualniVysledkovkaView, name='seminar_aktualni_vysledky'),
|
2021-04-28 21:26:30 +02:00
|
|
|
path('aktualni/rocnik/', views.AktualniRocnikRedirectView.as_view(), name='seminar_aktualni_rocnik'),
|
2015-05-06 17:07:32 +02:00
|
|
|
|
2019-05-11 01:15:05 +02:00
|
|
|
# Clanky
|
2021-01-19 21:35:37 +01:00
|
|
|
path('archiv/clanky/', views.ClankyResitelView.as_view(), name='clanky_resitel'),
|
2019-06-20 21:00:23 +02:00
|
|
|
#path('clanky/org/', views.ClankyOrganizatorView.as_view(), name='clanky_organizator'),
|
2015-09-13 15:31:34 +02:00
|
|
|
|
2019-05-11 01:15:05 +02:00
|
|
|
# Stranky viditelne pouze pro orgy:
|
2020-04-15 22:30:58 +02:00
|
|
|
path(
|
2020-09-05 19:20:41 +02:00
|
|
|
'rocnik/<int:rocnik>/vysledkovka.tex',
|
|
|
|
org_required(views.RocnikVysledkovkaView.as_view()),
|
|
|
|
name='seminar_rocnik_vysledkovka'
|
2020-04-15 22:30:58 +02:00
|
|
|
),
|
2021-11-23 23:44:00 +01:00
|
|
|
path(
|
|
|
|
'rocnik/<int:rocnik>/resitele.csv',
|
|
|
|
org_required(views.resiteleRocnikuCsvExportView),
|
|
|
|
name='seminar_rocnik_resitele_csv'
|
|
|
|
),
|
2022-10-01 22:08:21 +02:00
|
|
|
path(
|
|
|
|
'rocnik/<int:rocnik>/tituly.tex',
|
|
|
|
org_required(views.TitulyViewRocnik),
|
|
|
|
name='seminar_rocnik_titul'
|
|
|
|
),
|
2022-10-03 16:56:38 +02:00
|
|
|
path(
|
|
|
|
'rocnik/<int:rocnik>/posledni_vysledkovka.tex',
|
|
|
|
org_required(views.PosledniCisloVysledkovkaView.as_view()),
|
|
|
|
name='seminar_rocnik_posledni_vysledkovka'
|
|
|
|
),
|
2020-09-05 19:20:41 +02:00
|
|
|
path(
|
2021-01-10 10:39:12 +01:00
|
|
|
'cislo/<int:rocnik>.<str:cislo>/vysledkovka.tex',
|
2020-09-05 19:20:41 +02:00
|
|
|
org_required(views.CisloVysledkovkaView.as_view()),
|
|
|
|
name='seminar_cislo_vysledkovka'
|
|
|
|
),
|
|
|
|
path(
|
2021-01-10 10:39:12 +01:00
|
|
|
'cislo/<int:rocnik>.<str:cislo>/obalky.pdf',
|
2020-09-05 19:20:41 +02:00
|
|
|
org_required(views.cisloObalkyView),
|
|
|
|
name='seminar_cislo_obalky'
|
|
|
|
),
|
|
|
|
path(
|
2021-01-10 10:39:12 +01:00
|
|
|
'cislo/<int:rocnik>.<str:cislo>/tituly.tex',
|
2020-09-05 19:20:41 +02:00
|
|
|
org_required(views.TitulyView),
|
|
|
|
name='seminar_cislo_titul'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'stav',
|
|
|
|
org_required(views.StavDatabazeView),
|
|
|
|
name='stav_databaze'
|
|
|
|
),
|
|
|
|
path(
|
2021-01-10 10:39:12 +01:00
|
|
|
'cislo/<int:rocnik>.<str:cislo>/obalkovani',
|
2020-09-05 19:20:41 +02:00
|
|
|
org_required(views.ObalkovaniView.as_view()),
|
|
|
|
name='seminar_cislo_resitel_obalkovani'
|
|
|
|
),
|
2021-01-05 22:54:16 +01:00
|
|
|
path(
|
|
|
|
'cislo/<int:trocnik>.<str:tcislo>/odmeny/<int:frocnik>.<str:fcislo>/',
|
|
|
|
org_required(views.OdmenyView.as_view()),
|
|
|
|
name="seminar_archiv_odmeny"),
|
2020-09-04 16:28:38 +02:00
|
|
|
|
2019-06-20 21:00:23 +02:00
|
|
|
path('', views.TitulniStranaView.as_view(), name='titulni_strana'),
|
2021-03-09 22:44:19 +01:00
|
|
|
path('jak-resit/', views.JakResitView.as_view(), name='jak_resit'),
|
2022-02-15 17:48:16 +01:00
|
|
|
path('stare-novinky/', views.StareNovinkyView.as_view(), name='stare_novinky'),
|
2022-07-22 14:21:40 +02:00
|
|
|
|
|
|
|
# Dočasné & neodladěné:
|
|
|
|
path(
|
|
|
|
'hidden/hromadne_pridani',
|
|
|
|
org_required(views.HromadnePridaniView.as_view()),
|
|
|
|
name="hromadne_pridani"
|
|
|
|
),
|
2016-01-09 17:28:20 +01:00
|
|
|
]
|