diff --git a/CHANGELOG.md b/CHANGELOG.md index f36c0a9..65cd7dd 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 647ab92..989490b 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]}"