Open edwardchalstrey1 opened 1 month ago
Some good resources here:
python manage.py runserver --settings=settings.local
on the command line -- or django_environ
django_environ
python manage.py runserver --settings=settings.local
on the command linedjango-environ
seshat/settings/base.py
)Update handling of.env
inlocal.py
to be same asbase.py
using decouple instead ofenviron
django-environ
was to differentiate between non-production (local, test site, GH actions) and production. See insideseshat/settings/base.py
where there are several if statements likeif not os.path.exists(local_env_path) and not os.getenv('GITHUB_ACTIONS') == 'true':
which avoid setting variables from the production "decouple" config. There is probably a more sensible way to refactor this!.env