Files
wger/settings
pankaj-basnet b3044dad07 feat(oauth): add USE_GOOGLE_AUTH setting for allauth, auto-derive USE_SOCIAL_AUTH
As suggested by maintainer rolandgeider, add a dedicated USE_GOOGLE_AUTH
setting. USE_SOCIAL_AUTH is now auto-derived (True if any provider is
enabled) rather than being set manually.

This pattern scales cleanly when GitHub and Facebook are added in future
PRs — each provider gets its own flag, and USE_SOCIAL_AUTH stays in sync.

Files changed:
- settings/settings_global.py: add USE_GOOGLE_AUTH to WGER_SETTINGS
  defaults, remove USE_GITHUB_AUTH/USE_FACEBOOK_AUTH, auto-derive
  USE_SOCIAL_AUTH from provider flags
- settings/main.py: read USE_GOOGLE_AUTH from env, remove
  USE_GITHUB_AUTH/USE_FACEBOOK_AUTH env reads, add auto-derive logic
- settings/local_dev.py: set USE_GOOGLE_AUTH=True, remove github/facebook
  flags, add auto-derive logic
- settings/ci.py: set USE_GOOGLE_AUTH=False, remove github/facebook flags
2026-05-18 17:05:00 +02:00
..

Settings

This directory contains configuration files and settings for the project.

You can add your own configuration files here, e.g. for development. Set the DJANGO_SETTINGS_MODULE environment variable to point to the new settings file. E.g.:

export DJANGO_SETTINGS_MODULE=settings.local_dev
python manage.py runserver

If you want to add settings that are not tracked by git, you can create a local_dev_extra.py file, this will be imported by local_dev.py if it exists.