from django.conf.urls import patterns, url from yaksh import views from django.contrib.auth.views import password_reset, password_reset_confirm,\ password_reset_done, password_reset_complete, password_change,\ password_change_done # app_name = 'yaksh' urlpatterns = [ url(r'^forgotpassword/$', password_reset, {'template_name': 'register/password_reset_form.html'}, name="password_reset"), url(r'^password_reset/(?P[0-9A-Za-z]+)-(?P.+)/$', password_reset_confirm, {'template_name': 'register/password_reset_confirm.html'}, name='password_reset_confirm'), url(r'^password_reset/mail_sent/$', password_reset_done, {'template_name': 'register/password_reset_done.html'}, name='password_reset_done'), url(r'^password_reset/complete/$', password_reset_complete, {'template_name': 'register/password_reset_complete.html'}, name='password_reset_complete'), url(r'^changepassword/$', password_change, {'template_name': 'register/password_change_form.html'}, name='password_change'), url(r'^password_change/done/$', password_change_done, {'template_name': 'register/password_change_done.html'}, name='password_change_done'), ] urlpatterns += [ url(r'^$', views.index), url(r'^login/$', views.user_login, name='login'), url(r'^quizzes/$', views.quizlist_user, name='quizlist_user'), url(r'^results/$', views.results_user), url(r'^start/$', views.start), url(r'^start/(?P\d+)/$', views.start), url(r'^start/(?P\d+)/(?P\d+)/$', views.start), url(r'^quit/(?P\d+)/(?P\d+)/$', views.quit), url(r'^complete/$', views.complete), url(r'^complete/(?P\d+)/(?P\d+)/$',\ views.complete), url(r'^register/$', views.user_register), url(r'^(?P\d+)/check/$', views.check), url(r'^(?P\d+)/check/(?P\d+)/(?P\d+)/$',\ views.check), url(r'^(?P\d+)/skip/(?P\d+)/(?P\d+)/$', views.skip), url(r'^(?P\d+)/skip/(?P\d+)/(?P\d+)/(?P\d+)/$', views.skip), url(r'^enroll_request/(?P\d+)/$', views.enroll_request, name='enroll_request'), url(r'^self_enroll/(?P\d+)/$', views.self_enroll, name='self_enroll'), url(r'^view_answerpaper/(?P\d+)/$', views.view_answerpaper, name='view_answerpaper'), url(r'^manage/$', views.prof_manage, name='manage'), url(r'^manage/addquestion/$', views.add_question), url(r'^manage/addquestion/(?P\d+)/$', views.edit_question), url(r'^manage/addquiz/(?P\d+)/$', views.add_quiz, name='add_quiz'), url(r'^manage/addquiz/(?P\d+)/(?P\d+)/$', views.add_quiz, name='edit_quiz'), url(r'^manage/gradeuser/$', views.grade_user), url(r'^manage/gradeuser/(?P\d+)/$',views.grade_user), url(r'^manage/gradeuser/(?P\d+)/(?P\d+)/$',views.grade_user), url(r'^manage/gradeuser/(?P\d+)/(?P\d+)/(?P\d+)/$',views.grade_user), url(r'^manage/questions/$', views.show_all_questions), url(r'^manage/monitor/$', views.monitor), url(r'^manage/showquestionpapers/$', views.show_all_questionpapers), url(r'^manage/showquestionpapers/(?P\d+)/$',\ views.show_all_questionpapers), url(r'^manage/monitor/(?P\d+)/$', views.monitor), url(r'^manage/user_data/(?P\d+)/(?P\d+)/$', views.user_data), url(r'^manage/user_data/(?P\d+)/$', views.user_data), url(r'^manage/designquestionpaper/$', views.design_questionpaper, name='design_questionpaper'), url(r'^manage/designquestionpaper/(?P\d+)/$',\ views.design_questionpaper), url(r'^manage/statistics/question/(?P\d+)/$', views.show_statistics), url(r'^manage/statistics/question/(?P\d+)/(?P\d+)/$', views.show_statistics), url(r'^manage/monitor/download_csv/(?P\d+)/$', views.download_csv), url(r'manage/courses/$', views.courses, name='courses'), url(r'manage/add_course/$', views.add_course, name='add_course'), url(r'manage/course_detail/(?P\d+)/$', views.course_detail, name='course_detail'), url(r'manage/enroll/(?P\d+)/(?P\d+)/$', views.enroll), url(r'manage/enroll/rejected/(?P\d+)/(?P\d+)/$', views.enroll, {'was_rejected': True}), url(r'manage/reject/(?P\d+)/(?P\d+)/$', views.reject), url(r'manage/enrolled/reject/(?P\d+)/(?P\d+)/$', views.reject, {'was_enrolled': True}), url(r'manage/toggle_status/(?P\d+)/$', views.toggle_course_status), url(r'^ajax/questionpaper/(?P.+)/$', views.ajax_questionpaper), url(r'^ajax/questions/filter/$', views.ajax_questions_filter), url(r'^editprofile/$', views.edit_profile, name='edit_profile'), url(r'^viewprofile/$', views.view_profile, name='view_profile'), url(r'^manage/enroll/(?P\d+)/$', views.enroll), url(r'manage/enroll/rejected/(?P\d+)/$', views.enroll, {'was_rejected': True}), url(r'manage/enrolled/reject/(?P\d+)/$', views.reject, {'was_enrolled': True}), url(r'^manage/searchteacher/(?P\d+)/$', views.search_teacher), url(r'^manage/addteacher/(?P\d+)/$', views.add_teacher, name='add_teacher'), url(r'^manage/remove_teachers/(?P\d+)/$', views.remove_teachers, name='remove_teacher'), url(r'^manage/download_questions/$', views.show_all_questions), url(r'^manage/upload_questions/$', views.show_all_questions), url(r'^manage/(?P[\w\-]+)/(?P\d+)/$', views.test_quiz), url(r'^manage/create_demo_course/$', views.create_demo_course), ]