Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
988db7b1
Commit
988db7b1
authored
Oct 14, 2016
by
Robert Raposa
Committed by
GitHub
Oct 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13751 from edx/robrap/cleanup-student-urls
Clean up student/urls.py
parents
a5fa635b
3bfe3f84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
common/djangoapps/student/urls.py
+14
-14
No files found.
common/djangoapps/student/urls.py
View file @
988db7b1
...
...
@@ -30,6 +30,15 @@ urlpatterns = (
url
(
r'^change_setting$'
,
'change_setting'
,
name
=
'change_setting'
),
url
(
r'^change_email_settings$'
,
'change_email_settings'
,
name
=
'change_email_settings'
),
# password reset in student.views (see below for password reset django views)
url
(
r'^password_reset/$'
,
'password_reset'
,
name
=
'password_reset'
),
url
(
r'^password_reset_confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$'
,
'password_reset_confirm_wrapper'
,
name
=
'password_reset_confirm'
,
),
)
# enable automatic login
...
...
@@ -38,27 +47,18 @@ if settings.FEATURES.get('AUTOMATIC_AUTH_FOR_TESTING'):
url
(
r'^auto_auth$'
,
'auto_auth'
),
)
# add all student.views url patterns
urlpatterns
=
patterns
(
*
urlpatterns
)
# password reset mixes student.views with django views
urlpatterns
+=
(
url
(
r'^password_reset/$'
,
'student.views.password_reset'
,
name
=
'password_reset'
),
# Obsolete Django views for password resets
# password reset django views (see above for password reset student.views)
urlpatterns
+=
patterns
(
'django.contrib.auth.views'
,
# TODO: Replace with Mako-ized views
url
(
r'^password_change/$'
,
'django.contrib.auth.views.password_change'
,
name
=
'password_change'
),
url
(
r'^password_change_done/$'
,
'django.contrib.auth.views.password_change_done'
,
name
=
'password_change_done'
),
url
(
r'^password_reset_complete/$'
,
'
django.contrib.auth.views.
password_reset_complete'
,
'password_reset_complete'
,
name
=
'password_reset_complete'
,
),
url
(
r'^password_reset_confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$'
,
'student.views.password_reset_confirm_wrapper'
,
name
=
'password_reset_confirm'
,
),
url
(
r'^password_reset_done/$'
,
'django.contrib.auth.views.password_reset_done'
,
name
=
'password_reset_done'
),
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment