diff options
author | Prabhu Ramachandran | 2016-04-26 17:15:31 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-04-26 17:15:31 +0530 |
commit | 825f8464ef1b2853c029cc23bf7fb89f6a9c1c09 (patch) | |
tree | 0b94516d5a969dce5bc0750e405ca45850880f21 /yaksh/urls.py | |
parent | 97bdb23fbacc3e625beb96efdf58431f42604a81 (diff) | |
parent | 3be13f4868a881cbe591e9eb686872875272ac1d (diff) | |
download | online_test-825f8464ef1b2853c029cc23bf7fb89f6a9c1c09.tar.gz online_test-825f8464ef1b2853c029cc23bf7fb89f6a9c1c09.tar.bz2 online_test-825f8464ef1b2853c029cc23bf7fb89f6a9c1c09.zip |
Merge pull request #89 from adityacp/Editprofile
Profile change, Enroll students and change password
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r-- | yaksh/urls.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py index b2f894f..471a36b 100644 --- a/yaksh/urls.py +++ b/yaksh/urls.py @@ -1,7 +1,8 @@ from django.conf.urls import patterns, url from yaksh import views from django.contrib.auth.views import password_reset, password_reset_confirm,\ - password_reset_done, password_reset_complete + password_reset_done, password_reset_complete, password_change,\ + password_change_done urlpatterns = [ url(r'^forgotpassword/$', password_reset, name="password_reset"), @@ -11,6 +12,10 @@ urlpatterns = [ name='password_reset_done'), url(r'^password_reset/complete/$', password_reset_complete, name='password_reset_complete'), + url(r'^changepassword/$', password_change, + name='password_change'), + url(r'^password_change/done/$', password_change_done, + name='password_change_done'), ] urlpatterns += [ url(r'^$', views.index), @@ -34,7 +39,6 @@ urlpatterns += [ views.skip), url(r'^enroll_request/(?P<course_id>\d+)/$', views.enroll_request), url(r'^self_enroll/(?P<course_id>\d+)/$', views.self_enroll), - url(r'^manage/$', views.prof_manage), url(r'^manage/addquestion/$', views.add_question), url(r'^manage/addquestion/(?P<question_id>\d+)/$', views.add_question), @@ -74,4 +78,11 @@ urlpatterns += [ url(r'manage/toggle_status/(?P<course_id>\d+)/$', views.toggle_course_status), url(r'^ajax/questionpaper/(?P<query>.+)/$', views.ajax_questionpaper), url(r'^ajax/questions/filter/$', views.ajax_questions_filter), + url(r'^editprofile/$', views.edit_profile), + url(r'^viewprofile/$', views.view_profile), + url(r'^manage/enroll/(?P<course_id>\d+)/$', views.enroll), + url(r'manage/enroll/rejected/(?P<course_id>\d+)/$', + views.enroll, {'was_rejected': True}), + url(r'manage/enrolled/reject/(?P<course_id>\d+)/$', + views.reject, {'was_enrolled': True}) ] |