|
|
@ -4,6 +4,7 @@ from django.contrib.auth.decorators import user_passes_test |
|
|
|
from . import views, export |
|
|
|
from utils import staff_member_required |
|
|
|
from prednasky.views import newPrednaska, Prednaska_hotovo |
|
|
|
from django.views.generic.base import RedirectView |
|
|
|
|
|
|
|
staff_member_required = user_passes_test(lambda u: u.is_staff) |
|
|
|
|
|
|
@ -12,9 +13,14 @@ urlpatterns = [ |
|
|
|
#url(r'^prednasky/$', newPrednaska), |
|
|
|
#url(r'^prednasky/hotovo$', Prednaska_hotovo), |
|
|
|
|
|
|
|
# REDIRECTy |
|
|
|
url(r'^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'), |
|
|
|
|
|
|
|
# Archiv |
|
|
|
url(r'^archiv/cisla/$', views.CislaView.as_view()), |
|
|
|
url(r'^archiv/temata/$', views.ArchivTemataView.as_view()), |
|
|
|
|
|
|
@ -23,20 +29,24 @@ urlpatterns = [ |
|
|
|
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'), |
|
|
|
|
|
|
|
# Soustredeni |
|
|
|
url(r'^soustredeni/probehlo/$', views.SoustredeniListView.as_view(), |
|
|
|
name = 'seminar_seznam_soustredeni'), |
|
|
|
url(r'^soustredeni/probehlo/(?P<soustredeni>\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'), |
|
|
|
url(r'^soustredeni/(?P<soustredeni>\d+)/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'), |
|
|
|
|
|
|
|
# Clanky |
|
|
|
url(r'^clanky/resitel/$', views.ClankyResitelView.as_view(), name='clanky_resitel'), |
|
|
|
url(r'^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'), |
|
|
|