diff options
author | adityacp | 2019-12-20 15:34:23 +0530 |
---|---|---|
committer | adityacp | 2019-12-20 15:43:25 +0530 |
commit | d60050dcfe7e32dc720e48942c7457860da79d6b (patch) | |
tree | 1d82d6e9c21954bbe2995a89615a19becdeb7945 /yaksh/urls.py | |
parent | 2e4c36969b18b9ebf09314d7a04094a7debe4387 (diff) | |
download | online_test-d60050dcfe7e32dc720e48942c7457860da79d6b.tar.gz online_test-d60050dcfe7e32dc720e48942c7457860da79d6b.tar.bz2 online_test-d60050dcfe7e32dc720e48942c7457860da79d6b.zip |
Use reverse url instead of traditional url in templates
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index 8397017..d453381 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -2,9 +2,9 @@ from django.conf.urls import url from yaksh import views urlpatterns = [ - url(r'^$', views.index), + url(r'^$', views.index, name="index"), url(r'^login/$', views.user_login, name='login'), - url(r'^logout/$', views.user_logout), + url(r'^logout/$', views.user_logout, name="logout"), url(r'^update_email/$', views.update_email, name="update_email"), url(r'^activate/(?P<key>.+)$', views.activate_user, name="activate"), url(r'^new_activation/$', views.new_activation, name='new_activation'), @@ -144,9 +144,9 @@ urlpatterns = [ url(r'^manage/remove_teachers/(?P<course_id>\d+)/$', views.remove_teachers, name='remove_teacher'), url(r'^manage/download_questions/$', views.show_all_questions, - name="show_questions"), + name="download_questions"), url(r'^manage/upload_questions/$', views.show_all_questions, - name="show_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'), @@ -160,7 +160,8 @@ urlpatterns = [ views.regrade, name='regrade'), url(r'^manage/(?P<mode>godmode|usermode)/(?P<quiz_id>\d+)/' '(?P<course_id>\d+)/$', views.test_quiz), - url(r'^manage/create_demo_course/$', views.create_demo_course), + url(r'^manage/create_demo_course/$', views.create_demo_course, + name="create_demo_course"), url(r'^manage/courses/download_course_csv/(?P<course_id>\d+)/$', views.download_course_csv, name="download_course_csv"), url(r'^manage/download/user_assignment/(?P<question_id>\d+)/' |