From b9f96f3edc315fbcab6752cf13c65dd127ab5bd1 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 6 Apr 2016 16:55:26 +0530 Subject: Phase 2 views cleanup views cleaned further used model forms removed unwanted templates --- yaksh/urls.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'yaksh/urls.py') 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\d+)/$', 'start'), url(r'^start/(?P\d+)/(?P\d+)/$', 'start'), url(r'^quit/(?P\d+)/(?P\d+)/$', 'quit'), - url(r'^intro/(?P\d+)/$', 'intro'), url(r'^complete/$', 'complete'), url(r'^complete/(?P\d+)/(?P\d+)/$',\ 'complete'), @@ -25,8 +25,10 @@ urlpatterns += patterns('yaksh.views', url(r'^(?P\d+)/check/$', 'check'), url(r'^(?P\d+)/check/(?P\d+)/(?P\d+)/$',\ 'check'), - url(r'^intro/$', 'intro'), - url(r'^(?P\d+)/(?P\d+)/(?P\d+)/$', 'show_question'), + url(r'^(?P\d+)/skip/(?P\d+)/(?P\d+)/$', + 'skip'), + url(r'^(?P\d+)/skip/(?P\d+)/(?P\d+)/(?P\d+)/$', + 'skip'), url(r'^enroll_request/(?P\d+)/$', 'enroll_request'), url(r'^self_enroll/(?P\d+)/$', 'self_enroll'), @@ -34,15 +36,12 @@ urlpatterns += patterns('yaksh.views', url(r'^manage/addquestion/$', 'add_question'), url(r'^manage/addquestion/(?P\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\d+)/$', 'add_quiz'), url(r'^manage/gradeuser/$', 'show_all_users'), url(r'^manage/gradeuser/(?P.*)/(?P\d+)/$', 'grade_user'), url(r'^manage/gradeuser/(?P.*)/$', '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\d+)/$',\ -- cgit