This allows an IDD project to be run directly via ./manage.py, without using go.sh to configure the environment, and therefore works in VS Code launch configs.
The manage.py file defines the one required ixc-django-docker env var (PROJECT_DIR), and we use environs to load the .env file into os.environ in settings.
If you want the .env file to override any existing environment variables, first export ENVIRONS_OVERRIDE='true'.
This allows an IDD project to be run directly via
./manage.py
, without usinggo.sh
to configure the environment, and therefore works in VS Code launch configs.The
manage.py
file defines the one requiredixc-django-docker
env var (PROJECT_DIR
), and we useenvirons
to load the.env
file intoos.environ
in settings.If you want the
.env
file to override any existing environment variables, first exportENVIRONS_OVERRIDE='true'
.This is an alternative solution to https://github.com/ixc/ic-base/pull/187