diff options
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 53c7b8a..3a75947 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -15,9 +15,9 @@ urlpatterns += patterns('yaksh.views', url(r'^quizzes/$', 'quizlist_user'), url(r'^results/$', 'results_user'), url(r'^start/$', 'start'), + url(r'^start/(?P<questionpaper_id>\d+)/$', 'start'), url(r'^start/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'start'), url(r'^quit/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'quit'), - url(r'^intro/(?P<questionpaper_id>\d+)/$', 'intro'), url(r'^complete/$', 'complete'), url(r'^complete/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$',\ 'complete'), @@ -25,8 +25,10 @@ urlpatterns += patterns('yaksh.views', url(r'^(?P<q_id>\d+)/check/$', 'check'), url(r'^(?P<q_id>\d+)/check/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$',\ 'check'), - url(r'^intro/$', 'intro'), - url(r'^(?P<q_id>\d+)/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'show_question'), + url(r'^(?P<q_id>\d+)/skip/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', + 'skip'), + url(r'^(?P<q_id>\d+)/skip/(?P<next_q>\d+)/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', + 'skip'), url(r'^enroll_request/(?P<course_id>\d+)/$', 'enroll_request'), url(r'^self_enroll/(?P<course_id>\d+)/$', 'self_enroll'), @@ -34,15 +36,12 @@ urlpatterns += patterns('yaksh.views', url(r'^manage/addquestion/$', 'add_question'), url(r'^manage/addquestion/(?P<question_id>\d+)/$', 'add_question'), url(r'^manage/addquiz/$', 'add_quiz'), - url(r'^manage/editquiz/$', 'edit_quiz'), - url(r'^manage/editquestion/$', 'edit_question'), url(r'^manage/addquiz/(?P<quiz_id>\d+)/$', 'add_quiz'), url(r'^manage/gradeuser/$', 'show_all_users'), url(r'^manage/gradeuser/(?P<username>.*)/(?P<questionpaper_id>\d+)/$', 'grade_user'), url(r'^manage/gradeuser/(?P<username>.*)/$', 'grade_user'), url(r'^manage/questions/$', 'show_all_questions'), - url(r'^manage/showquiz/$', 'show_all_quiz'), url(r'^manage/monitor/$', 'monitor'), url(r'^manage/showquestionpapers/$', 'show_all_questionpapers'), url(r'^manage/showquestionpapers/(?P<questionpaper_id>\d+)/$',\ |