Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.8 KiB
38 lines
1.8 KiB
"""
|
|
Soubor sloužící jako „router“, tj. zde se definují url adresy a na co ukazují:
|
|
|
|
- ``org/add_solution`` (seminar_vloz_reseni) :class:`~odevzdavatko.views.PosliReseniView`
|
|
- ``resitel/nahraj_reseni`` (seminar_nahraj_reseni) :class:`~odevzdavatko.views.NahrajReseniView`
|
|
- ``resitel/odevzdana_reseni/`` (seminar_resitel_odevzdana_reseni) :class:`~odevzdavatko.views.PrehledOdevzdanychReseni`
|
|
- ``org/reseni/`` (odevzdavatko_tabulka) :class:`~odevzdavatko.views.TabulkaOdevzdanychReseniView`
|
|
- ``org/reseni/rocnik/<int:rocnik>/`` (odevzdavatko_tabulka) :class:`~odevzdavatko.views.TabulkaOdevzdanychReseniView`
|
|
- ``org/reseni/<int:problem>/<int:resitel>/`` (odevzdavatko_reseni_resitele_k_problemu) :class:`~odevzdavatko.views.ReseniProblemuView`
|
|
- ``org/reseni/<int:pk>/`` (odevzdavatko_detail_reseni) :func:`~seminar.utils.viewMethodSwitch` + :class:`~odevzdavatko.views.DetailReseniView` + :func:`~odevzdavatko.views.hodnoceniReseniView`
|
|
- ``org/reseni/all`` :class:`~odevzdavatko.views.SeznamReseniView`
|
|
- ``org/reseni/akt`` :class:`~odevzdavatko.views.TabulkaOdevzdanychReseniView`
|
|
- ``resitel/reseni/<int:pk>`` (odevzdavatko_resitel_reseni) :class:`~odevzdavatko.views.ResitelReseniView`
|
|
"""
|
|
from django.urls import path
|
|
from django.contrib.auth.decorators import login_required
|
|
from . import views
|
|
from seminar.utils import org_required
|
|
|
|
urlpatterns = [
|
|
path(
|
|
'org/rozcestnik/',
|
|
org_required(views.OrgoRozcestnikView.as_view()),
|
|
name='seminar_org_rozcestnik'
|
|
),
|
|
|
|
path('prihlaska/', views.prihlaskaView, name='seminar_prihlaska'),
|
|
|
|
path(
|
|
'resitel/osobni-udaje/',
|
|
login_required(views.resitelEditView),
|
|
name='seminar_resitel_edit'
|
|
),
|
|
|
|
# Obecný view na profil -- orgům dá rozcestník, řešitelům jejich stránku
|
|
path('profil/', views.profilView, name='profil'),
|
|
|
|
]
|
|
|