Skip to content

Conversation

@VitalinaMykoliuk
Copy link
Contributor

No description provided.

core/settings.py Outdated
Comment on lines 177 to 178
LOGIN_REDIRECT_URL = "/"
ACCOUNT_LOGOUT_REDIRECT_URL = "/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls make it to redirect to /admin/

core/settings.py Outdated
LOGIN_REDIRECT_URL = "/"
ACCOUNT_LOGOUT_REDIRECT_URL = "/"

SITE_ID = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls move it to .env file

core/settings.py Outdated
"APP": {
"client_id": os.environ.get("GITHUB_CLIENT_ID"),
"secret": os.environ.get("GITHUB_CLIENT_SECRET"),
"key": "",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this key?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should sync with main because we already have a html file

core/settings.py Outdated
"allauth.account.auth_backends.AuthenticationBackend",
)

LOGIN_REDIRECT_URL = os.environ.get("LOGIN_REDIRECT_URL")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this value should be hardcoded

core/settings.py Outdated
)

LOGIN_REDIRECT_URL = os.environ.get("LOGIN_REDIRECT_URL")
ACCOUNT_LOGOUT_REDIRECT_URL = os.environ.get("ACCOUNT_LOGOUT_REDIRECT_URL")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants