summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-05-18 16:28:00 +0530
committerGitHub2020-05-18 16:28:00 +0530
commit50fec4b15da116fe8af05aa4583d56af27955679 (patch)
treefe431506e3a89d854f8d0b24e811ca6d6129206a /yaksh/urls.py
parent2db15ac584ae991cd052fa0eed68194594f91775 (diff)
parentf7825eade425cb51ba053763db9d9fd051b0f4ce (diff)
downloadonline_test-50fec4b15da116fe8af05aa4583d56af27955679.tar.gz
online_test-50fec4b15da116fe8af05aa4583d56af27955679.tar.bz2
online_test-50fec4b15da116fe8af05aa4583d56af27955679.zip
Merge pull request #692 from adityacp/merge_monitor_regrade
Merge monitor regrade
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py26
1 files changed, 15 insertions, 11 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 149e4d6..b530e99 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -1,4 +1,5 @@
from django.conf.urls import url
+from django.urls import path
from yaksh import views
urlpatterns = [
@@ -156,17 +157,14 @@ urlpatterns = [
name="download_questions"),
url(r'^manage/upload_questions/$', views.show_all_questions,
name="upload_questions"),
- url(r'^manage/grader/$', views.grader, name='grader'),
- url(r'^manage/regrade/question/(?P<course_id>\d+)/(?P<question_id>\d+)/$',
- views.regrade, name='regrade'),
- url(r'^manage/regrade/questionpaper/(?P<course_id>\d+)/'
- '(?P<question_id>\d+)/(?P<questionpaper_id>\d+)/$',
- views.regrade, name='regrade'),
- url(r'^manage/regrade/answerpaper/(?P<course_id>\d+)/'
- '(?P<question_id>\d+)/(?P<answerpaper_id>\d+)/$',
- views.regrade, name='regrade'),
- url(r'^manage/regrade/paper/(?P<course_id>\d+)/(?P<answerpaper_id>\d+)/$',
- views.regrade, name='regrade'),
+ url(r'^manage/regrade/paper/question/(?P<course_id>\d+)/'
+ '(?P<questionpaper_id>\d+)/(?P<question_id>\d+)/$',
+ views.regrade, name='regrade_by_quiz'),
+ url(r'^manage/regrade/user/(?P<course_id>\d+)/(?P<questionpaper_id>\d+)/'
+ '(?P<answerpaper_id>\d+)/$', views.regrade, name='regrade_by_user'),
+ url(r'^manage/regrade/user/question/(?P<course_id>\d+)/'
+ '(?P<questionpaper_id>\d+)/(?P<answerpaper_id>\d+)/'
+ '(?P<question_id>\d+)/', views.regrade, name='regrade_by_question'),
url(r'^manage/(?P<mode>godmode|usermode)/(?P<quiz_id>\d+)/'
'(?P<course_id>\d+)/$', views.test_quiz, name="test_quiz"),
url(r'^manage/create_demo_course/$', views.create_demo_course,
@@ -225,4 +223,10 @@ urlpatterns = [
views.delete_question, name="delete_question"),
url(r'^manage/search/questions', views.search_questions_by_tags,
name="search_questions_by_tags"),
+ path('view/notifications', views.view_notifications,
+ name="view_notifications"),
+ path('mark/notifications/<uuid:message_uid>',
+ views.mark_notification, name="mark_notification"),
+ path('mark/notifications', views.mark_notification,
+ name="mark_notification"),
]