summaryrefslogtreecommitdiff
path: root/testapp/exam/urls.py
diff options
context:
space:
mode:
authorprathamesh2015-04-07 13:39:47 +0530
committerprathamesh2015-04-07 13:39:47 +0530
commitbd5b1e21c4d837dab410f9a3eb332d7af3d0185a (patch)
tree99b4fb8ff258fe8ed496dd7100a0c5e23b6e7319 /testapp/exam/urls.py
parent28415b148617057674d85aee9a2d3aaac36bf0d2 (diff)
downloadonline_test-bd5b1e21c4d837dab410f9a3eb332d7af3d0185a.tar.gz
online_test-bd5b1e21c4d837dab410f9a3eb332d7af3d0185a.tar.bz2
online_test-bd5b1e21c4d837dab410f9a3eb332d7af3d0185a.zip
Multiple attempts and file upload question type.
Can have multiple attempts for a quiz. Can also specify time lag between two successive attempts for a given quiz. Students can upload their code through the interface. The code will be saved in the folder named after their roll number. And the file name will be the question id.
Diffstat (limited to 'testapp/exam/urls.py')
-rw-r--r--testapp/exam/urls.py33
1 files changed, 18 insertions, 15 deletions
diff --git a/testapp/exam/urls.py b/testapp/exam/urls.py
index f8a6cb8..5ffb588 100644
--- a/testapp/exam/urls.py
+++ b/testapp/exam/urls.py
@@ -1,21 +1,24 @@
-from django.conf.urls import patterns, include, url
+from django.conf.urls import patterns, url
urlpatterns = patterns('testapp.exam.views',
url(r'^$', 'index'),
url(r'^login/$', 'user_login'),
- url(r'^quizzes/$','quizlist_user'),
- url(r'^results/$','results_user'),
+ url(r'^quizzes/$', 'quizlist_user'),
+ url(r'^results/$', 'results_user'),
url(r'^start/$', 'start'),
- url(r'^start/(?P<questionpaper_id>\d+)/$','start'),
- url(r'^quit/(?P<questionpaper_id>\d+)/$', 'quit'),
- url(r'^intro/(?P<questionpaper_id>\d+)/$','intro'),
+ url(r'^start/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$', 'start'),
+ url(r'^quit/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$', 'quit'),
+ url(r'^intro/(?P<questionpaper_id>\d+)/$', 'intro'),
url(r'^complete/$', 'complete'),
- url(r'^complete/(?P<questionpaper_id>\d+)/$', 'complete'),
+ url(r'^complete/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$',\
+ 'complete'),
url(r'^register/$', 'user_register'),
url(r'^(?P<q_id>\d+)/$', 'question'),
url(r'^(?P<q_id>\d+)/check/$', 'check'),
- url(r'^(?P<q_id>\d+)/check/(?P<questionpaper_id>\d+)/$', 'check'),
+ url(r'^(?P<q_id>\d+)/check/(?P<attempt_no>\d+)/(?P<questionpaper_id>\d+)/$',\
+ 'check'),
url(r'^intro/$', 'start'),
+ url(r'^up/$', 'updation'),
url(r'^manage/$', 'prof_manage'),
url(r'^manage/addquestion/$', 'add_question'),
@@ -25,22 +28,22 @@ urlpatterns = patterns('testapp.exam.views',
url(r'^manage/editquestion/$', 'edit_question'),
url(r'^manage/addquiz/(?P<quiz_id>\d+)/$', 'add_quiz'),
url(r'^manage/gradeuser/$', 'show_all_users'),
- url(r'^manage/gradeuser/(?P<username>[a-zA-Z0-9_.]+)/$', 'grade_user'),
+ url(r'^manage/gradeuser/(?P<username>.*/$', 'grade_user'),
url(r'^manage/questions/$', 'show_all_questions'),
- url(r'^manage/showquiz/$','show_all_quiz'),
+ url(r'^manage/showquiz/$', 'show_all_quiz'),
url(r'^manage/monitor/$', 'monitor'),
- url(r'^manage/showquestionpapers/$','show_all_questionpapers'),
+ url(r'^manage/showquestionpapers/$', 'show_all_questionpapers'),
url(r'^manage/showquestionpapers/(?P<questionpaper_id>\d+)/$',\
'show_all_questionpapers'),
url(r'^manage/monitor/(?P<questionpaper_id>\d+)/$', 'monitor'),
- url(r'^manage/user_data/(?P<username>[a-zA-Z0-9_.]+)/$','user_data'),
- url(r'^manage/designquestionpaper/$','design_questionpaper'),
+ url(r'^manage/user_data/(?P<username>.*)/$', 'user_data'),
+ url(r'^manage/designquestionpaper/$', 'design_questionpaper'),
url(r'^manage/designquestionpaper/(?P<questionpaper_id>\d+)/$',\
'design_questionpaper'),
url(r'^manage/designquestionpaper/automatic/(?P<questionpaper_id>\d+)/$',\
'automatic_questionpaper'),
- url(r'^manage/designquestionpaper/automatic$','automatic_questionpaper'),
- url(r'^manage/designquestionpaper/manual$','manual_questionpaper'),
+ url(r'^manage/designquestionpaper/automatic$', 'automatic_questionpaper'),
+ url(r'^manage/designquestionpaper/manual$', 'manual_questionpaper'),
url(r'^manage/designquestionpaper/manual/(?P<questionpaper_id>\d+)/$',\
'manual_questionpaper'),
url(r'^ajax/questionpaper/(?P<query>.+)/$', 'ajax_questionpaper'),