summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py31
1 files changed, 28 insertions, 3 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 13e46fc..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+)/$',
@@ -246,4 +246,29 @@ urlpatterns = [
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'),
]