From ccef3602538746a0646a5a5ecc43bce0fffd4d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Wed, 17 Jun 2020 13:24:48 +0200 Subject: [PATCH] It is no longer necessary to define DJANGO_SETTINGS_MODULE in jobs That's because we use "docker run" and no longer "docker exec". --- tutor/scripts.py | 1 - tutor/templates/hooks/cms/importdemocourse | 1 - tutor/templates/hooks/cms/init | 1 - tutor/templates/hooks/lms/init | 1 - 4 files changed, 4 deletions(-) diff --git a/tutor/scripts.py b/tutor/scripts.py index 538960699e..a2c03a6908 100644 --- a/tutor/scripts.py +++ b/tutor/scripts.py @@ -3,7 +3,6 @@ from . import plugins BASE_OPENEDX_COMMAND = """ -export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS echo "Loading settings $DJANGO_SETTINGS_MODULE" """ diff --git a/tutor/templates/hooks/cms/importdemocourse b/tutor/templates/hooks/cms/importdemocourse index 3126ed63dc..3cff5d3a9c 100644 --- a/tutor/templates/hooks/cms/importdemocourse +++ b/tutor/templates/hooks/cms/importdemocourse @@ -1,4 +1,3 @@ -export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS echo "Loading settings $DJANGO_SETTINGS_MODULE" # Import demo course diff --git a/tutor/templates/hooks/cms/init b/tutor/templates/hooks/cms/init index 89b4c9e44c..2f732da22f 100644 --- a/tutor/templates/hooks/cms/init +++ b/tutor/templates/hooks/cms/init @@ -1,6 +1,5 @@ dockerize -wait tcp://{{ MYSQL_HOST }}:{{ MYSQL_PORT }} -timeout 20s -export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS echo "Loading settings $DJANGO_SETTINGS_MODULE" ./manage.py cms migrate diff --git a/tutor/templates/hooks/lms/init b/tutor/templates/hooks/lms/init index 6cf4f31ff5..07bfbd18a3 100644 --- a/tutor/templates/hooks/lms/init +++ b/tutor/templates/hooks/lms/init @@ -1,6 +1,5 @@ dockerize -wait tcp://{{ MYSQL_HOST }}:{{ MYSQL_PORT }} -timeout 20s -export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS echo "Loading settings $DJANGO_SETTINGS_MODULE" ./manage.py lms migrate