Commit 274d0f2c authored by Evili del Rio's avatar Evili del Rio

Correct search for default settings

Signed-off-by: default avatarEvili del Rio <evili.del.rio@gmail.com>
parent 60763642
Pipeline #907 passed with stage
in 22 seconds
......@@ -71,7 +71,7 @@ fi
## Find settings in CWD
settings_found=$(find . -name settings -o -name settings.py | \
head |tr / . |\
head |tr / . | sed 's/\.py$//' \
cut -d . -s -f 3- | head -1)
export DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-${settings_found}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment