from django.conf.urls import patterns, url urlpatterns = patterns('yaksh.views', url(r'^$', 'index'), url(r'^login/$', 'user_login'), url(r'^quizzes/$', 'quizlist_user'), url(r'^results/$', 'results_user'), url(r'^start/$', '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'), url(r'^register/$', 'user_register'), url(r'^(?P\d+)/$', 'question'), url(r'^(?P\d+)/check/$', 'check'), url(r'^(?P\d+)/check/(?P\d+)/(?P\d+)/$',\ 'check'), url(r'^intro/$', 'start'), url(r'^(?P\d+)/(?P\d+)/(?P\d+)/$', 'show_question'), url(r'^enroll_request/(?P\d+)/$', 'enroll_request'), url(r'^self_enroll/(?P\d+)/$', 'self_enroll'), url(r'^manage/$', 'prof_manage'), 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+)/$',\ 'show_all_questionpapers'), url(r'^manage/monitor/(?P\d+)/$', 'monitor'), url(r'^manage/user_data/(?P.*)/(?P\d+)/$', 'user_data'), url(r'^manage/user_data/(?P.*)/$', 'user_data'), url(r'^manage/designquestionpaper/$', 'design_questionpaper'), url(r'^manage/designquestionpaper/(?P\d+)/$',\ 'design_questionpaper'), url(r'^manage/designquestionpaper/automatic/(?P\d+)/$',\ 'automatic_questionpaper'), url(r'^manage/designquestionpaper/automatic$', 'automatic_questionpaper'), url(r'^manage/designquestionpaper/manual$', 'manual_questionpaper'), url(r'^manage/designquestionpaper/manual/(?P\d+)/$',\ 'manual_questionpaper'), url(r'^manage/statistics/question/(?P\d+)/$', 'show_statistics'), url(r'^manage/statistics/question/(?P\d+)/(?P\d+)/$', 'show_statistics'), url(r'manage/courses/$', 'courses'), url(r'manage/add_course/$', 'add_course'), url(r'manage/course_detail/(?P\d+)/$', 'course_detail'), url(r'manage/enroll/(?P\d+)/(?P\d+)/$', 'enroll'), url(r'manage/enroll/rejected/(?P\d+)/(?P\d+)/$', 'enroll', {'was_rejected': True}), url(r'manage/reject/(?P\d+)/(?P\d+)/$', 'reject'), url(r'manage/enrolled/reject/(?P\d+)/(?P\d+)/$', 'reject', {'was_enrolled': True}), url(r'manage/toggle_status/(?P\d+)/$', 'toggle_course_status'), url(r'^ajax/questionpaper/(?P.+)/$', 'ajax_questionpaper'), url(r'^ajax/questions/filter/$', 'ajax_questions_filter'), )