diff options
author | prathamesh | 2016-04-06 16:55:26 +0530 |
---|---|---|
committer | prathamesh | 2016-04-07 14:40:02 +0530 |
commit | b9f96f3edc315fbcab6752cf13c65dd127ab5bd1 (patch) | |
tree | 4650dadd7c00a4bd8930aff86faacbcaf0593d3d /yaksh/urls.py | |
parent | 69d53a33c77270a9244344d9de676d39502a9f1b (diff) | |
download | online_test-b9f96f3edc315fbcab6752cf13c65dd127ab5bd1.tar.gz online_test-b9f96f3edc315fbcab6752cf13c65dd127ab5bd1.tar.bz2 online_test-b9f96f3edc315fbcab6752cf13c65dd127ab5bd1.zip |
Phase 2 views cleanup
views cleaned further
used model forms
removed unwanted templates
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+)/$',\ |