diff options
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 0639b25..e93d80a 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -60,9 +60,11 @@ urlpatterns = [ views.get_next_unit, name='next_unit'), url(r'^course_modules/(?P<course_id>\d+)/$', views.course_modules, name='course_modules'), - url(r'^forum/(?P<course_id>\d+)/$', + url(r'^forum/course_forum/(?P<course_id>\d+)/$', views.course_forum, name='course_forum'), + url(r'^forum/lessons_forum/(?P<course_id>\d+)/$', + views.lessons_forum, name='lessons_forum'), url(r'^forum/(?P<course_id>\d+)/post/(?P<uuid>[0-9a-f-]+)/$', views.post_comments, name='post_comments'), @@ -197,8 +199,6 @@ urlpatterns = [ views.design_module, name="design_module"), url(r'^manage/courses/designmodule/(?P<module_id>\d+)/' '(?P<course_id>\d+)/$', views.design_module, name="design_module"), - url(r'^manage/courses/lesson/preview/$', - views.preview_html_text, name="preview_html_text"), url(r'^manage/courses/add_module/(?P<course_id>\d+)/$', views.add_module, name="add_module"), url(r'^manage/courses/add_module/(?P<course_id>\d+)/(?P<module_id>\d+)/$', @@ -237,4 +237,38 @@ urlpatterns = [ views.mark_notification, name="mark_notification"), path('mark/notifications', views.mark_notification, name="mark_notification"), + url(r'^manage/micromanager/allow_special_attempt/(?P<user_id>\d+)/' + '(?P<course_id>\d+)/(?P<quiz_id>\d+)/$', + views.allow_special_attempt, name='allow_special_attempt'), + url(r'^micromanager/special_start/(?P<micromanager_id>\d+)/$', + views.special_start, name='special_start'), + url(r'^manage/micromanager/special_revoke/(?P<micromanager_id>\d+)/$', + views.revoke_special_attempt, name='revoke_special_attempt'), + url(r'^manage/extend_time/(?P<paper_id>\d+)/$', + views.extend_time, name='extend_time'), + path('manage/add/marker/<int:course_id>/<int:lesson_id>', views.add_marker, + name='add_marker'), + path('manage/add/lesson/topic/<int:content_type>/<int:course_id>/<int:lesson_id>', + views.add_topic, name='add_topic'), + path('manage/edit/lesson/topic/<int:content_type>/<int:course_id>/<int:lesson_id>/' + '<int:toc_id>/<int:topic_id>', views.add_topic, name='edit_topic'), + path('manage/add/lesson/quiz/<int:content_type>/<int:course_id>/<int:lesson_id>', + views.add_marker_quiz, name='add_marker_quiz'), + path('manage/edit/lesson/quiz/<int:content_type>/<int:course_id>/<int:lesson_id>/' + '<int:toc_id>/<int:question_id>', views.add_marker_quiz, + name='edit_marker_quiz'), + path('manage/remove/lesson/toc/<int:course_id>/<int:toc_id>', + views.delete_toc, name='delete_toc'), + path('get/marker/quiz/<int:course_id>/<int:toc_id>', views.get_marker_quiz, + name='get_marker_quiz'), + path('submit/marker/quiz/<int:course_id>/<int:toc_id>', + views.submit_marker_quiz, name='submit_marker_quiz'), + path('manage/lesson/stats/<int:course_id>/<int:lesson_id>', + views.lesson_statistics, name='lesson_statistics'), + path('manage/lesson/stats/<int:course_id>/<int:lesson_id>/<int:toc_id>', + views.lesson_statistics, name='lesson_statistics'), + path('manage/download/sample/toc', + views.download_sample_toc, name='download_sample_toc'), + path('manage/upload_marks/<int:course_id>/<int:questionpaper_id>/', + views.upload_marks, name='upload_marks'), ] |