diff options
author | adityacp | 2020-01-17 10:56:47 +0530 |
---|---|---|
committer | adityacp | 2020-01-17 10:56:47 +0530 |
commit | f988c72e19b689227d671b6774242bb3e784a5e2 (patch) | |
tree | 571d9d324450ed676c8b2671c497dc02e28d5678 /yaksh/urls.py | |
parent | 23bf012f3428d76685cfd952cc6760eb595ff013 (diff) | |
download | online_test-f988c72e19b689227d671b6774242bb3e784a5e2.tar.gz online_test-f988c72e19b689227d671b6774242bb3e784a5e2.tar.bz2 online_test-f988c72e19b689227d671b6774242bb3e784a5e2.zip |
Change views and urls
- Change enroll, reject and course detail views
- Add new urls for courses
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 3397fb1..543dc1d 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -119,7 +119,7 @@ urlpatterns = [ url(r'manage/enroll/(?P<course_id>\d+)/(?P<user_id>\d+)/$', views.enroll, name="enroll_user"), url(r'manage/enroll/rejected/(?P<course_id>\d+)/(?P<user_id>\d+)/$', - views.enroll, {'was_rejected': True}), + views.enroll, {'was_rejected': True}, name="enroll_rejected"), url(r'manage/upload_users/(?P<course_id>\d+)/$', views.upload_users, name="upload_users"), url(r'manage/send_mail/(?P<course_id>\d+)/$', views.send_mail, @@ -137,10 +137,11 @@ urlpatterns = [ url(r'^manage/enroll/(?P<course_id>\d+)/$', views.enroll, name="enroll_users"), url(r'manage/enroll/rejected/(?P<course_id>\d+)/$', - views.enroll, {'was_rejected': True}), + views.enroll, {'was_rejected': True}, name="enroll_rejected"), url(r'manage/enrolled/reject/(?P<course_id>\d+)/$', views.reject, {'was_enrolled': True}, name="reject_users"), - url(r'^manage/searchteacher/(?P<course_id>\d+)/$', views.search_teacher), + url(r'^manage/searchteacher/(?P<course_id>\d+)/$', views.search_teacher, + name="search_teacher"), url(r'^manage/addteacher/(?P<course_id>\d+)/$', views.add_teacher, name='add_teacher'), url(r'^manage/remove_teachers/(?P<course_id>\d+)/$', views.remove_teachers, @@ -202,8 +203,6 @@ urlpatterns = [ views.add_module, name="edit_module"), url(r'^manage/courses/designcourse/(?P<course_id>\d+)/$', views.design_course, name="design_course"), - url(r'^manage/courses/designcourse/(?P<course_id>\d+)/$', - views.design_course, name="design_course"), url(r'^manage/course_status/(?P<course_id>\d+)/$', views.course_status, name="course_status"), url(r'^manage/preview_questionpaper/(?P<questionpaper_id>\d+)/$', @@ -214,4 +213,10 @@ urlpatterns = [ views.download_course, name="download_course"), url(r'^download_course/(?P<course_id>\d+)/$', views.download_course, name="download_course"), + url(r'^manage/course/enrollments/(?P<course_id>\d+)', + views.course_students, name="course_students"), + url(r'^manage/course/all/modules/(?P<course_id>\d+)', + views.get_course_modules, name="get_course_modules"), + url(r'^manage/course/teachers/(?P<course_id>\d+)', + views.course_teachers, name="course_teachers"), ] |