diff --git a/CHANGELOG.md b/CHANGELOG.md index f36c0a921d6b2633a9376e52d0c928f9f6df96be..65cd7ddcd65bbeb65140b05c3a7dc01e1993d181 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Python Buildpack Changelog +# 125 + +Set `PYTHONPATH` during collectstatic runs. + # 124 Update buildpack to automatically install [dev-packages] (Pipenv) during Heroku CI builds. diff --git a/bin/steps/collectstatic b/bin/steps/collectstatic index 647ab92d5a03ec001e2b3a1db9bf92b90831391f..989490be420ae21ded15952f72b3c319b3fbb538 100755 --- a/bin/steps/collectstatic +++ b/bin/steps/collectstatic @@ -30,6 +30,7 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL puts-step "$ python $MANAGE_FILE collectstatic --noinput" # Run collectstatic, cleanup some of the noisy output. + export PYTHONPATH=. python "$MANAGE_FILE" collectstatic --noinput --traceback 2>&1 | sed '/^Post-processed/d;/^Copying/d;/^$/d' | indent COLLECTSTATIC_STATUS="${PIPESTATUS[0]}"