-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix messy setting (Operation Clean Config Project) #477
Conversation
…s.test_blacklisting
…m_no_password_serializer
It's Ready for Review!!! @iMerica and Anyone please review this PR :) Your suggestions matter!!! |
Thanks for submitting this pull request! Give me a day or two to review it please. |
My pleasure sir! |
I think the |
Done! |
In dj-rest-auth version 3.0.0, settings have been refactor and are all in the REST_AUTH setting. The REST or REST_AUTH prefix is removed for thome of them. Everything related to this change can be found in this PR iMerica/dj-rest-auth#477
In dj-rest-auth version 3.0.0, settings have been refactor and are all in the REST_AUTH setting. The REST or REST_AUTH prefix is removed for thome of them. Everything related to this change can be found in this PR iMerica/dj-rest-auth#477
In dj-rest-auth version 3.0.0, settings have been refactor and are all in the REST_AUTH setting. The REST or REST_AUTH prefix is removed for thome of them. Everything related to this change can be found in this PR iMerica/dj-rest-auth#477
Fix
dj-rest-auth
Messy SettingsThis PR is created to make all
dj-rest-auth
settings stored in one dict variable calledREST_AUTH
. Also this PR related to Operation Clean Config Project. Please read the configuration docs here https://dj-rest-auth.readthedocs.io/en/latest/configuration.htmlSummary
Before this PR
After this PR
What is changed?
dj-rest-auth
Documentationsettings.py
REST
orREST_AUTH
is shorted by removing those prefix@override_api_settings(JWT_AUTH_HTTPONLY=False)
totests.test_api.APIBasicTests.test_blacklisting
since the default isTrue
based on documentation, even though i found the default isFalse
at this line, The value goes against the documentation.@override_api_settings(JWT_AUTH_HTTPONLY=False)
totests.test_api.APIBasicTests.test_rotate_token_refresh_view
. And add@override_api_settings(SESSION_LOGIN=False)
totests.test_social.TestSocialConnectAuth.test_social_connect
,tests.test_api.APIBasicTests.test_registration_allowed_with_custom_no_password_serializer
, andfix tests.test_api.APIBasicTests.test_registration
. I'm confused with this line, it looks like the default value ofREST_SESSION_LOGIN
or in new settings calledSESSION_LOGIN
isFalse
. Once again the value goes against the documentation.How to Fix?
rest_framework
too.Difficulty, NEED Help!!!
From my current commit in PR, I'm stuck with
app_settings.py
with these lineThe problem is
setting
value never changed to'REST_AUTH'
, instead'REST_FRAMEWORK'
. How to fix this?Make a better
override_api_settings
intests.utils
Fix the documentation