Fix undefined settings in k8s scripts

In k8s, creating a user is an interactive command, so it needs to run in
exec. Thus, the DJANGO_SETTINGS_MODULE needs to be defined for this
command.

Close #344
This commit is contained in:
Régis Behmo 2020-06-23 19:11:35 +02:00
parent 2fc28bef79
commit b328e0f7d9
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Bugfix] Fix undefined settings in k8s scripts, such as `createuser`
## v10.0.7 (2020-06-22)
- [Bugfix] Fix TypeError on viewing xblock

View File

@ -3,6 +3,7 @@ from . import fmt
from . import plugins
BASE_OPENEDX_COMMAND = """
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
"""