Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
It is no longer necessary to define DJANGO_SETTINGS_MODULE in jobs
Browse files Browse the repository at this point in the history
That's because we use "docker run" and no longer "docker exec".
  • Loading branch information
regisb committed Jun 17, 2020
1 parent 6bc3e23 commit ccef360
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion tutor/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from . import plugins

BASE_OPENEDX_COMMAND = """
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
"""

Expand Down
1 change: 0 additions & 1 deletion tutor/templates/hooks/cms/importdemocourse
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"

# Import demo course
Expand Down
1 change: 0 additions & 1 deletion tutor/templates/hooks/cms/init
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion tutor/templates/hooks/lms/init
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ccef360

Please sign in to comment.