summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authoradityacp2020-01-28 18:18:07 +0530
committeradityacp2020-01-28 18:18:07 +0530
commiteaf4873ff71eb3655a82f24d05e00881040a4326 (patch)
treefd4f7b735da95e9ce64dca83101ba1a80cde5270 /yaksh/urls.py
parent547575e98d119a00472efe3d70693ed972468031 (diff)
downloadonline_test-eaf4873ff71eb3655a82f24d05e00881040a4326.tar.gz
online_test-eaf4873ff71eb3655a82f24d05e00881040a4326.tar.bz2
online_test-eaf4873ff71eb3655a82f24d05e00881040a4326.zip
Change in views, forms, templates, static
- Revamp UI in student dashboard - Fix course form to get bootstrap form class - Add custom css for sidebar in course module page for student - Use django url pattern
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 78e7221..e9f3539 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -15,14 +15,17 @@ urlpatterns = [
name='quizlist_user'),
url(r'^results/$', views.results_user),
url(r'^start/(?P<questionpaper_id>\d+)/(?P<module_id>\d+)/'
- '(?P<course_id>\d+)/$', views.start),
+ '(?P<course_id>\d+)/$', views.start, name="start_quiz"),
url(r'^start/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
- '(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.start),
+ '(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.start,
+ name="start_quiz"),
url(r'^quit/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
- '(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.quit),
- url(r'^complete/$', views.complete),
+ '(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.quit,
+ name="quit_quiz"),
+ url(r'^complete/$', views.complete, name="complete"),
url(r'^complete/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
- '(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.complete),
+ '(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$', views.complete,
+ name="complete"),
url(r'^register/$', views.user_register, name="register"),
url(r'^(?P<q_id>\d+)/check/$', views.check, name="check"),
url(r'^get_result/(?P<uid>\d+)/(?P<course_id>\d+)/(?P<module_id>\d+)/$',
@@ -32,10 +35,10 @@ urlpatterns = [
views.check, name="check"),
url(r'^(?P<q_id>\d+)/skip/(?P<attempt_num>\d+)/(?P<module_id>\d+)/'
'(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$',
- views.skip),
+ views.skip, name="skip_question"),
url(r'^(?P<q_id>\d+)/skip/(?P<next_q>\d+)/(?P<attempt_num>\d+)/'
'(?P<module_id>\d+)/(?P<questionpaper_id>\d+)/(?P<course_id>\d+)/$',
- views.skip),
+ views.skip, name="skip_question"),
url(r'^enroll_request/(?P<course_id>\d+)/$', views.enroll_request,
name='enroll_request'),
url(r'^self_enroll/(?P<course_id>\d+)/$', views.self_enroll,