925a9682093bed552886351562055226be521c6e
[edumed.git] / stage2 / urls.py
1 # -*- coding: utf-8 -*-
2 from django.conf.urls import url
3
4 from stage2 import views
5
6 urlpatterns = (
7     url(r'^uczestnik/(?P<participant_id>[0-9]*)/(?P<key>.*)/$', views.participant_view, name='stage2_participant'),
8     url(r'^upload/(?P<assignment_id>[0-9]*)/(?P<participant_id>[0-9]*)/(?P<key>.*)/$', views.upload,
9         name='stage2_upload'),
10     url(r'^plik/(?P<assignment_id>[0-9]*)/(?P<file_no>[0-9]*)/(?P<participant_id>[0-9]*)/(?P<key>.*)/$',
11         views.get_file, name='stage2_participant_file'),
12     url(r'^zadania/$', views.assignment_list, name='stage2_assignments'),
13     url(r'^odpowiedzi/(?P<assignment_id>[0-9]*)/$', views.answer_list, name='stage2_answer_list'),
14     url(r'^ocenione/(?P<assignment_id>[0-9]*)/$', views.marked_answer_list, name='stage2_marked_answers'),
15     url(r'^plik/(?P<attachment_id>[0-9]*)/$', views.expert_download, name='stage2_expert_download'),
16     url(r'^mark/(?P<answer_id>[0-9]*)/$', views.mark_answer, name='stage2_mark_answer'),
17 )