|
|
@ -9,105 +9,105 @@ staff_member_required = user_passes_test(lambda u: u.is_staff) |
|
|
|
|
|
|
|
urlpatterns = [ |
|
|
|
# REDIRECTy |
|
|
|
url(r'^jak-resit/$', RedirectView.as_view(url='/co-je-MaM/jak-resit/')), |
|
|
|
url('jak-resit/', RedirectView.as_view(url='/co-je-MaM/jak-resit/')), |
|
|
|
|
|
|
|
# Organizatori |
|
|
|
url(r'^co-je-MaM/organizatori/$', views.CojemamOrganizatoriView.as_view(), name='organizatori'), |
|
|
|
url(r'^co-je-MaM/organizatori/organizovali/$', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'), |
|
|
|
url('co-je-MaM/organizatori/', views.CojemamOrganizatoriView.as_view(), name='organizatori'), |
|
|
|
url('co-je-MaM/organizatori/organizovali/', views.CojemamOrganizatoriStariView.as_view(), name='stari_organizatori'), |
|
|
|
|
|
|
|
# Archiv |
|
|
|
url(r'^archiv/cisla/$', views.ArchivView.as_view()), |
|
|
|
url(r'^archiv/temata/$', views.ArchivTemataView.as_view()), |
|
|
|
url('archiv/cisla/', views.ArchivView.as_view()), |
|
|
|
url('archiv/temata/', views.ArchivTemataView.as_view()), |
|
|
|
|
|
|
|
url(r'^rocnik/(?P<rocnik>\d+)/$', views.RocnikView.as_view(), name='seminar_rocnik'), |
|
|
|
#url(r'^cislo/(?P<rocnik>\d+)\.(?P<cislo>[0-9-]+)/$', views.CisloView.as_view(), name='seminar_cislo'), |
|
|
|
url(r'^problem/(?P<pk>\d+)/$', views.ProblemView.as_view(), name='seminar_problem'), |
|
|
|
#url(r'^problem/(?P<pk>\d+)/(?P<prispevek>\d+)/$', views.PrispevekView.as_view(), name='seminar_problem_prispevek'), |
|
|
|
url('rocnik/<int:rocnik>/', views.RocnikView.as_view(), name='seminar_rocnik'), |
|
|
|
#url('cislo/<int:rocnik>.<int:cislo>/', views.CisloView.as_view(), name='seminar_cislo'), |
|
|
|
url('problem/<int:pk>/', views.ProblemView.as_view(), name='seminar_problem'), |
|
|
|
#url('problem/(?P<pk>\d+)/(?P<prispevek>\d+)/', views.PrispevekView.as_view(), name='seminar_problem_prispevek'), |
|
|
|
|
|
|
|
# Soustredeni |
|
|
|
url( |
|
|
|
r'^soustredeni/probehlo/$', |
|
|
|
'soustredeni/probehlo/', |
|
|
|
views.SoustredeniListView.as_view(), |
|
|
|
name='seminar_seznam_soustredeni' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/probehlo/(?P<soustredeni>\d+)/$', |
|
|
|
'soustredeni/probehlo/<int:soustredeni>/', |
|
|
|
views.SoustredeniView.as_view(), |
|
|
|
name='seminar_soustredeni' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/seznam_ucastniku$', |
|
|
|
'soustredeni/<int:soustredeni>/seznam_ucastniku', |
|
|
|
staff_member_required(views.SoustredeniUcastniciView.as_view()), |
|
|
|
name='soustredeni_ucastnici' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/maily_ucastniku$', |
|
|
|
'soustredeni/<int:soustredeni>/maily_ucastniku', |
|
|
|
staff_member_required(views.SoustredeniMailyUcastnikuView.as_view()), |
|
|
|
name='maily_ucastniku' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/stvrzenky/(?P<first_num>\d+)$', |
|
|
|
'soustredeni/<int:soustredeni>/stvrzenky/<int:first_num>', |
|
|
|
staff_member_required(views.soustredeniStvrzenkyExportView), |
|
|
|
name='soustredeni_stvrzenky' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/export_ucastniku$', |
|
|
|
'soustredeni/<int:soustredeni>/export_ucastniku', |
|
|
|
staff_member_required(views.soustredeniUcastniciExportView), |
|
|
|
name='soustredeni_ucastnici_export' |
|
|
|
), |
|
|
|
url( |
|
|
|
r'^soustredeni/(?P<soustredeni>\d+)/fotogalerie/', |
|
|
|
'soustredeni/<int:soustredeni>/fotogalerie/', |
|
|
|
include('galerie.urls') |
|
|
|
), |
|
|
|
|
|
|
|
# Zadani |
|
|
|
url(r'^zadani/aktualni/$', views.AktualniZadaniView, name='seminar_aktualni_zadani'), |
|
|
|
url(r'^zadani/temata/$', views.ZadaniTemataView, name='seminar_temata'), |
|
|
|
#url(r'^zadani/vysledkova-listina/$', views.ZadaniAktualniVysledkovkaView, name='seminar_vysledky'), |
|
|
|
url(r'^$', views.TitulniStranaView.as_view(), name='titulni_strana'), |
|
|
|
url(r'^stare-novinky/$', views.StareNovinkyView.as_view(), name='stare_novinky'), |
|
|
|
url('zadani/aktualni/', views.AktualniZadaniView, name='seminar_aktualni_zadani'), |
|
|
|
url('zadani/temata/', views.ZadaniTemataView, name='seminar_temata'), |
|
|
|
#url('zadani/vysledkova-listina/', views.ZadaniAktualniVysledkovkaView, name='seminar_vysledky'), |
|
|
|
url('', views.TitulniStranaView.as_view(), name='titulni_strana'), |
|
|
|
url('stare-novinky/', views.StareNovinkyView.as_view(), name='stare_novinky'), |
|
|
|
|
|
|
|
# Clanky |
|
|
|
url(r'^clanky/resitel/$', views.ClankyResitelView.as_view(), name='clanky_resitel'), |
|
|
|
#url(r'^clanky/org/$', views.ClankyOrganizatorView.as_view(), name='clanky_organizator'), |
|
|
|
url('clanky/resitel/', views.ClankyResitelView.as_view(), name='clanky_resitel'), |
|
|
|
#url('clanky/org/', views.ClankyOrganizatorView.as_view(), name='clanky_organizator'), |
|
|
|
|
|
|
|
# Aesop |
|
|
|
url(r'^aesop-export/mam-rocnik-(?P<prvni_rok>\d+)\.csv$', export.ExportRocnikView.as_view(), name='seminar_export_rocnik'), |
|
|
|
url(r'^aesop-export/mam-sous-(?P<datum_zacatku>[\d-]+)\.csv$', export.ExportSousView.as_view(), name='seminar_export_sous'), |
|
|
|
url(r'^aesop-export/index.csv$', export.ExportIndexView.as_view(), name='seminar_export_index'), |
|
|
|
url('aesop-export/mam-rocnik-<int:prvni_rok>.csv', export.ExportRocnikView.as_view(), name='seminar_export_rocnik'), |
|
|
|
url('aesop-export/mam-sous-<str:datum_zacatku>.csv', export.ExportSousView.as_view(), name='seminar_export_sous'), |
|
|
|
url('aesop-export/index.csv', export.ExportIndexView.as_view(), name='seminar_export_index'), |
|
|
|
|
|
|
|
# Stranky viditelne pouze pro orgy: |
|
|
|
#url( |
|
|
|
# r'^rocnik/(?P<rocnik>\d+)/vysledkovka.tex$', |
|
|
|
# 'rocnik/(?P<rocnik>\d+)/vysledkovka.tex', |
|
|
|
# staff_member_required(views.RocnikVysledkovkaView.as_view()), |
|
|
|
# name='seminar_cislo_vysledkovka' |
|
|
|
#), |
|
|
|
#url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/vysledkovka.tex$', |
|
|
|
#url('cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/vysledkovka.tex', |
|
|
|
# staff_member_required(views.CisloVysledkovkaView.as_view()), name='seminar_cislo_vysledkovka'), |
|
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/obalky.pdf$', |
|
|
|
url('cislo/<int:rocnik>.<int:cislo>/obalky.pdf', |
|
|
|
staff_member_required(views.cisloObalkyView), name='seminar_cislo_obalky'), |
|
|
|
|
|
|
|
#url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/tituly.tex$', |
|
|
|
#url('cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/tituly.tex', |
|
|
|
# staff_member_required(views.TitulyView), name='seminar_cislo_titul'), |
|
|
|
url(r'^stav$', |
|
|
|
url('stav', |
|
|
|
staff_member_required(views.StavDatabazeView), name='stav_databaze'), |
|
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/obalkovani$', |
|
|
|
url('cislo/<int:rocnik>.<int:cislo>/obalkovani', |
|
|
|
staff_member_required(views.obalkovaniView), name='seminar_cislo_resitel_obalkovani'), |
|
|
|
url(r'^cislo/(?P<rocnik>\d+).(?P<cislo>[0-9-]+)/tex-download.json$', |
|
|
|
url('cislo/<int:rocnik>.<int:cislo>/tex-download.json', |
|
|
|
staff_member_required(views.texDownloadView), name='seminar_tex_download'), |
|
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/obalky.pdf', |
|
|
|
url('soustredeni/<int:soustredeni>/obalky.pdf', |
|
|
|
staff_member_required(views.soustredeniObalkyView), name='seminar_soustredeni_obalky'), |
|
|
|
|
|
|
|
url(r'^tex-upload/login/$', views.LoginView, name='seminar_login'), |
|
|
|
url('tex-upload/login/', views.LoginView, name='seminar_login'), |
|
|
|
url( |
|
|
|
r'^tex-upload/$', |
|
|
|
'tex-upload/', |
|
|
|
staff_member_required(views.texUploadView), |
|
|
|
name='seminar_tex_upload' |
|
|
|
), |
|
|
|
url(r'^prihlaska/$',views.get_name), |
|
|
|
url('prihlaska/',views.get_name), |
|
|
|
|
|
|
|
# Ceka na autocomplete v3 |
|
|
|
# url(r'^autocomplete/organizatori/$', |
|
|
|
# url('autocomplete/organizatori/', |
|
|
|
# staff_member_required(views.OrganizatorAutocomplete.as_view()), |
|
|
|
# name='seminar_autocomplete_organizator') |
|
|
|
|
|
|
|