summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorprathamesh2016-03-02 15:48:39 +0530
committerprathamesh2016-03-02 15:48:39 +0530
commitd9793c01304498d7f59820cf2ab2d7a5483851f8 (patch)
treee1e2b3fdfb64e9165c56be7115303ea69b14cd17 /yaksh/urls.py
parent3b055ad0ad3232a25408632a020d5e3c284c245b (diff)
downloadonline_test-d9793c01304498d7f59820cf2ab2d7a5483851f8.tar.gz
online_test-d9793c01304498d7f59820cf2ab2d7a5483851f8.tar.bz2
online_test-d9793c01304498d7f59820cf2ab2d7a5483851f8.zip
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.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py12
1 files changed, 12 insertions, 0 deletions
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<q_id>\d+)/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'show_question'),
+ url(r'^enroll_request/(?P<course_id>\d+)/$', 'enroll_request'),
+ url(r'^self_enroll/(?P<course_id>\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<questionpaper_id>\d+)/(?P<attempt_number>\d+)/$',
'show_statistics'),
+ url(r'manage/courses/$', 'courses'),
+ url(r'manage/add_course/$', 'add_course'),
+ url(r'manage/course_detail/(?P<course_id>\d+)/$', 'course_detail'),
+ url(r'manage/enroll/(?P<course_id>\d+)/(?P<user_id>\d+)/$', 'enroll'),
+ url(r'manage/enroll/rejected/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
+ 'enroll', {'was_rejected': True}),
+ url(r'manage/reject/(?P<course_id>\d+)/(?P<user_id>\d+)/$', 'reject'),
+ url(r'manage/enrolled/reject/(?P<course_id>\d+)/(?P<user_id>\d+)/$',
+ 'reject', {'was_enrolled': True}),
+ url(r'manage/toggle_status/(?P<course_id>\d+)/$', 'toggle_course_status'),
url(r'^ajax/questionpaper/(?P<query>.+)/$', 'ajax_questionpaper'),
url(r'^ajax/questions/filter/$', 'ajax_questions_filter'),