summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorankitjavalkar2015-09-14 12:28:41 +0530
committerankitjavalkar2015-09-15 11:33:59 +0530
commit7a60f782995eed0352f3172f445bb35ae8ee6aa9 (patch)
tree91d6d12b0a494dd9777fd1120e92db5763bf009a /yaksh/urls.py
parent32cde26f9807a29eb1fae0833e353212d43d7802 (diff)
downloadonline_test-7a60f782995eed0352f3172f445bb35ae8ee6aa9.tar.gz
online_test-7a60f782995eed0352f3172f445bb35ae8ee6aa9.tar.bz2
online_test-7a60f782995eed0352f3172f445bb35ae8ee6aa9.zip
Remove testapp dir, remove reference to testapp in paths, files
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
new file mode 100644
index 0000000..a9f7a98
--- /dev/null
+++ b/yaksh/urls.py
@@ -0,0 +1,52 @@
+from django.conf.urls import patterns, url
+
+urlpatterns = patterns('yaksh.views',
+ url(r'^$', 'index'),
+ url(r'^login/$', 'user_login'),
+ url(r'^quizzes/$', 'quizlist_user'),
+ url(r'^results/$', 'results_user'),
+ url(r'^start/$', 'start'),
+ url(r'^start/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'start'),
+ url(r'^quit/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'quit'),
+ url(r'^intro/(?P<questionpaper_id>\d+)/$', 'intro'),
+ url(r'^complete/$', 'complete'),
+ url(r'^complete/(?P<attempt_num>\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<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$',\
+ 'check'),
+ url(r'^intro/$', 'start'),
+ url(r'^(?P<q_id>\d+)/(?P<attempt_num>\d+)/(?P<questionpaper_id>\d+)/$', 'show_question'),
+
+ url(r'^manage/$', 'prof_manage'),
+ url(r'^manage/addquestion/$', 'add_question'),
+ url(r'^manage/addquestion/(?P<question_id>\d+)/$', 'add_question'),
+ url(r'^manage/addquiz/$', 'add_quiz'),
+ url(r'^manage/editquiz/$', 'edit_quiz'),
+ 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>.*)/$', 'grade_user'),
+ url(r'^manage/questions/$', 'show_all_questions'),
+ url(r'^manage/showquiz/$', 'show_all_quiz'),
+ url(r'^manage/monitor/$', 'monitor'),
+ 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>.*)/$', '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/manual/(?P<questionpaper_id>\d+)/$',\
+ 'manual_questionpaper'),
+ url(r'^ajax/questionpaper/(?P<query>.+)/$', 'ajax_questionpaper'),
+ url(r'^ajax/questions/filter/$', 'ajax_questions_filter'), ##@@
+
+)