from django.conf.urls import patterns, url urlpatterns = patterns('django.contrib.auth.views', url(r'^forgotpassword/$', 'password_reset', name="password_reset"), url(r'^password_reset/(?P[0-9A-Za-z]+)-(?P.+)/$', 'password_reset_confirm', name='password_reset_confirm'), url(r'^password_reset/mail_sent/$', 'password_reset_done', name='password_reset_done'), url(r'^password_reset/complete/$', 'password_reset_complete', name='password_reset_complete'), ) 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+)/$', 'start'), url(r'^start/(?P\d+)/(?P\d+)/$', 'start'), url(r'^quit/(?P\d+)/(?P\d+)/$', 'quit'), url(r'^complete/$', 'complete'), url(r'^complete/(?P\d+)/(?P\d+)/$',\ 'complete'), url(r'^register/$', 'user_register'), url(r'^(?P\d+)/check/$', 'check'), url(r'^(?P\d+)/check/(?P\d+)/(?P\d+)/$',\ 'check'), 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'), 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/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/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/statistics/question/(?P\d+)/$', 'show_statistics'), url(r'^manage/statistics/question/(?P\d+)/(?P\d+)/$', 'show_statistics'), url(r'^manage/monitor/download_csv/(?P\d+)/$', 'download_csv'), 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'), )