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.
Allow this app's URLConf to be parented in more places than just
/account/
.Description
This PR removes the
/account/
prefix from this app's URLConf, allowing developers to choose for themselves what URL prefixes they would like.To ensure backwards compatibility, I adjusted the root URLConfs in the
tests
project and theexample
project to still use the/account/
prefix. Furthermore, I also adjusted the documentation to instruct users to do the same:Advanced users should hopefully understand that they can adjust that prefix to whatever they'd like, and beginner users will simply mirror the documentation and continue with the previous behavior.
Motivation and Context
The previously behavior isn't necessarily congruous with django-allauth, which uses
/accounts/
, and other users might want different prefixes altogether.Closes #43 and #47.
How Has This Been Tested?
I updated the URLConf in the
tests
project and relied on GHA tests.Screenshots (if appropriate):
Types of changes
Checklist:
Assuming that tests for Python 3.7+Django 3.2 pass (currently running), test results for this branch have not changed from test results for
master
.