Remove broken django.contrib.auth url endpoints #1337
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes in this pull request
When working on #1332, I noticed that there were a number of URLs that simply raised errors (no representative template files for the different views exist). These were all from
django.contrib.auth.urls
. Please note that I did not check all existing URL endpoints, I simply noticed that all of these endpoints failed as I was looking for the used login and password reset endpoints. There may be other broken endpoints from different packages./login/
/logout/
/password_change/
/password_change/done/
/password_reset/
/password_reset/done/
/reset/<uidb64>/<token>/
/reset/done/
These were discovered by running the
./manage.py show_urls
command provided by Django Extensions, which I would recommend adding toconfig/settings/dev_debug.py
(not sure if that can be used in this PR or in another as it is not really part of the bug fix).When should this PR be merged
No restrictions.
Risks
I don't believe that there are any risks as all of these views throw a
500
error. At worst, removing them will return a user a404
instead.Follow up actions
None
Checklist (for reviewing)
General
migration
label if a new migration is added.Functionality
Code
Tests
Security
Documentation