summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/urls.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index ea1922d..b32bc36 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -44,19 +44,19 @@ urlpatterns += [
url(r'^manage/addquestion/(?P<question_id>\d+)/$', views.add_question),
url(r'^manage/addquiz/$', views.add_quiz),
url(r'^manage/addquiz/(?P<quiz_id>\d+)/$', views.add_quiz),
- url(r'^manage/gradeuser/$', views.show_all_users),
- url(r'^manage/gradeuser/(?P<username>.*)/(?P<questionpaper_id>\d+)/$',
- views.grade_user),
- url(r'^manage/gradeuser/(?P<username>.*)/$', views.grade_user),
+ url(r'^manage/gradeuser/$', views.grade_user),
+ url(r'^manage/gradeuser/(?P<quiz_id>\d+)/$',views.grade_user),
+ url(r'^manage/gradeuser/(?P<quiz_id>\d+)/(?P<user_id>\d+)/$',views.grade_user),
+ url(r'^manage/gradeuser/(?P<quiz_id>\d+)/(?P<user_id>\d+)/(?P<attempt_number>\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<questionpaper_id>\d+)/$',\
views.show_all_questionpapers),
url(r'^manage/monitor/(?P<questionpaper_id>\d+)/$', views.monitor),
- url(r'^manage/user_data/(?P<username>.*)/(?P<questionpaper_id>\d+)/$',
+ url(r'^manage/user_data/(?P<user_id>\d+)/(?P<questionpaper_id>\d+)/$',
views.user_data),
- url(r'^manage/user_data/(?P<username>.*)/$', views.user_data),
+ url(r'^manage/user_data/(?P<user_id>\d+)/$', views.user_data),
url(r'^manage/designquestionpaper/$', views.design_questionpaper),
url(r'^manage/designquestionpaper/(?P<questionpaper_id>\d+)/$',\
views.design_questionpaper),