summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-04-24 13:35:15 +0530
committerGitHub2017-04-24 13:35:15 +0530
commit7da22eb25f2bd5c0a6c5ba29d1febacb4f03f939 (patch)
tree8c439f46bf96ce695296527072dfa94c7720a041 /yaksh/urls.py
parent0208f8643a80fbee52ad8ff273bdc459f00d0e89 (diff)
parent0688e71c1b20d57234ac19473a88cd8419cd8928 (diff)
downloadonline_test-7da22eb25f2bd5c0a6c5ba29d1febacb4f03f939.tar.gz
online_test-7da22eb25f2bd5c0a6c5ba29d1febacb4f03f939.tar.bz2
online_test-7da22eb25f2bd5c0a6c5ba29d1febacb4f03f939.zip
Merge pull request #268 from adityacp/download_assignments
Download assignments
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 91f4137..8ddfe67 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -26,6 +26,8 @@ urlpatterns = [
url(r'^enroll_request/(?P<course_id>\d+)/$', views.enroll_request, name='enroll_request'),
url(r'^self_enroll/(?P<course_id>\d+)/$', views.self_enroll, name='self_enroll'),
url(r'^view_answerpaper/(?P<questionpaper_id>\d+)/$', views.view_answerpaper, name='view_answerpaper'),
+ url(r'^download/user_assignment/(?P<question_id>\d+)/(?P<user_id>\d+)/(?P<quiz_id>\d+)$',
+ views.download_assignment_file, name="download_user_assignment"),
url(r'^manage/$', views.prof_manage, name='manage'),
url(r'^manage/addquestion/$', views.add_question),
url(r'^manage/addquestion/(?P<question_id>\d+)/$', views.add_question),
@@ -91,4 +93,8 @@ urlpatterns = [
url(r'^manage/create_demo_course/$', views.create_demo_course),
url(r'^manage/courses/download_course_csv/(?P<course_id>\d+)/$',
views.download_course_csv),
+ url(r'^manage/download/user_assignment/(?P<question_id>\d+)/(?P<user_id>\d+)/(?P<quiz_id>\d+)/$',
+ views.download_assignment_file),
+ url(r'^manage/download/quiz_assignments/(?P<quiz_id>\d+)/$',
+ views.download_assignment_file)
]