From 1b844f50945af207e1b3c2ced657543556ef355d Mon Sep 17 00:00:00 2001 From: "Bc. Petr Pecha" Date: Sun, 8 May 2016 11:26:10 +0200 Subject: [PATCH] urls | presmerovani kvuli propagaci --- seminar/urls.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/seminar/urls.py b/seminar/urls.py index 698873f3..9da2858e 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -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\d+)/$', views.ProblemView.as_view(), name='seminar_problem'), url(r'^problem/(?P\d+)/(?P\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\d+)/$', views.SoustredeniView.as_view(), name='seminar_soustredeni'), url(r'^soustredeni/(?P\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\d+)\.csv$', export.ExportRocnikView.as_view(), name='seminar_export_rocnik'), url(r'^aesop-export/mam-sous-(?P[\d-]+)\.csv$', export.ExportSousView.as_view(), name='seminar_export_sous'), url(r'^aesop-export/index.csv$', export.ExportIndexView.as_view(), name='seminar_export_index'),