-
Notifications
You must be signed in to change notification settings - Fork 20
Add core settings, urls, pyproject.toml, and base.html #68
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
base: main
Are you sure you want to change the base?
Add core settings, urls, pyproject.toml, and base.html #68
Conversation
core/settings.py
Outdated
| LOGIN_REDIRECT_URL = "/" | ||
| ACCOUNT_LOGOUT_REDIRECT_URL = "/" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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": "", |
There was a problem hiding this comment.
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?
tracker/templates/base.html
Outdated
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
No description provided.