diff options
author | Prabhu Ramachandran | 2016-03-09 15:19:21 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-03-09 15:19:21 +0530 |
commit | 4874eb1e66c12269fa75849048afd2c9f129d5e3 (patch) | |
tree | 444f167c4bf4516b84e0cfeb6e60e921ae8519f8 /yaksh/urls.py | |
parent | 2bff22d61d5d4d6f038c5b368ec437c6bda1dfbe (diff) | |
parent | c974da07d46709d3aa3640ba69c89d1a287ff3c1 (diff) | |
download | online_test-4874eb1e66c12269fa75849048afd2c9f129d5e3.tar.gz online_test-4874eb1e66c12269fa75849048afd2c9f129d5e3.tar.bz2 online_test-4874eb1e66c12269fa75849048afd2c9f129d5e3.zip |
Merge pull request #82 from prathamesh920/courses
Courses
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 12 |
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'), |