From d9793c01304498d7f59820cf2ab2d7a5483851f8 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 2 Mar 2016 15:48:39 +0530 Subject: Course module implemented Moderator can now create courses. Under his courses he can create quizzes. Students can enroll for the course. Moderator can approve or reject enrollment request of the student. Student can view quizzes only for the enrolled course. --- yaksh/urls.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'yaksh/urls.py') diff --git a/yaksh/urls.py b/yaksh/urls.py index e6c2e15..ad0a925 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -19,6 +19,8 @@ urlpatterns = patterns('yaksh.views', 'check'), url(r'^intro/$', 'start'), url(r'^(?P\d+)/(?P\d+)/(?P\d+)/$', 'show_question'), + url(r'^enroll_request/(?P\d+)/$', 'enroll_request'), + url(r'^self_enroll/(?P\d+)/$', 'self_enroll'), url(r'^manage/$', 'prof_manage'), url(r'^manage/addquestion/$', 'add_question'), @@ -54,6 +56,16 @@ urlpatterns = patterns('yaksh.views', 'show_statistics'), url(r'^manage/statistics/question/(?P\d+)/(?P\d+)/$', 'show_statistics'), + url(r'manage/courses/$', 'courses'), + url(r'manage/add_course/$', 'add_course'), + url(r'manage/course_detail/(?P\d+)/$', 'course_detail'), + url(r'manage/enroll/(?P\d+)/(?P\d+)/$', 'enroll'), + url(r'manage/enroll/rejected/(?P\d+)/(?P\d+)/$', + 'enroll', {'was_rejected': True}), + url(r'manage/reject/(?P\d+)/(?P\d+)/$', 'reject'), + url(r'manage/enrolled/reject/(?P\d+)/(?P\d+)/$', + 'reject', {'was_enrolled': True}), + url(r'manage/toggle_status/(?P\d+)/$', 'toggle_course_status'), url(r'^ajax/questionpaper/(?P.+)/$', 'ajax_questionpaper'), url(r'^ajax/questions/filter/$', 'ajax_questions_filter'), -- cgit