From 8902f96f28ead9f2ed158691e582f09c8366dfcd Mon Sep 17 00:00:00 2001 From: adityacp Date: Tue, 17 Jul 2018 15:37:19 +0530 Subject: Create assignment upload files for a particular course instead of quiz --- yaksh/urls.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index 8f3401b..8397017 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -8,7 +8,8 @@ urlpatterns = [ url(r'^update_email/$', views.update_email, name="update_email"), url(r'^activate/(?P.+)$', views.activate_user, name="activate"), url(r'^new_activation/$', views.new_activation, name='new_activation'), - url(r'^toggle_moderator/$', views.toggle_moderator_role, name='toggle_moderator'), + url(r'^toggle_moderator/$', views.toggle_moderator_role, + name='toggle_moderator'), url(r'^quizzes/$', views.quizlist_user, name='quizlist_user'), url(r'^quizzes/(?P\w+)/$', views.quizlist_user, name='quizlist_user'), @@ -41,6 +42,9 @@ urlpatterns = [ name='self_enroll'), url(r'^view_answerpaper/(?P\d+)/(?P\d+)$', views.view_answerpaper, name='view_answerpaper'), + url(r'^download/user_assignment/(?P\d+)/(?P\d+)/' + '(?P\d+)/(?P\d+)$', + views.download_assignment_file, name="download_user_assignment"), url(r'^show_lesson/(?P\d+)/(?P\d+)/' '(?P\d+)/$', views.show_lesson, name='show_lesson'), url(r'^quizzes/view_module/(?P\d+)/(?P\d+)/$', @@ -160,10 +164,11 @@ urlpatterns = [ url(r'^manage/courses/download_course_csv/(?P\d+)/$', views.download_course_csv, name="download_course_csv"), url(r'^manage/download/user_assignment/(?P\d+)/' - '(?P\d+)/(?P\d+)/$', + '(?P\d+)/(?P\d+)/(?P\d+)$', views.download_assignment_file, name="download_user_assignment"), - url(r'^manage/download/quiz_assignments/(?P\d+)/$', - views.download_assignment_file, name="download_quiz_assignment"), + url(r'^manage/download/quiz_assignments/(?P\d+)/' + '(?P\d+)$', views.download_assignment_file, + name="download_quiz_assignment"), url(r'^manage/courses/download_yaml_template/', views.download_yaml_template, name="download_yaml_template"), url(r'^manage/download_sample_csv/', -- cgit