Skip to content
Snippets Groups Projects
Unverified Commit 7d975e74 authored by Kenneth Reitz's avatar Kenneth Reitz Committed by GitHub
Browse files

default to user python path for collectstatic runs (#655)


* default to user python path for collectstatic runs

Signed-off-by: default avatarKenneth Reitz <me@kennethreitz.org>

* bugfixes

Signed-off-by: default avatarKenneth Reitz <me@kennethreitz.org>

* fix

Signed-off-by: default avatarKenneth Reitz <me@kennethreitz.org>
parent 5f8360cb
No related branches found
No related tags found
No related merge requests found
# Python Buildpack Changelog # Python Buildpack Changelog
# 126
Bugfixes.
# 125 # 125
Bugfixes. Bugfixes.
......
...@@ -30,7 +30,8 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL ...@@ -30,7 +30,8 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL
puts-step "$ python $MANAGE_FILE collectstatic --noinput" puts-step "$ python $MANAGE_FILE collectstatic --noinput"
# Run collectstatic, cleanup some of the noisy output. # Run collectstatic, cleanup some of the noisy output.
export PYTHONPATH=. PYTHONPATH=${PYTHONPATH:-.}
export PYTHONPATH
python "$MANAGE_FILE" collectstatic --noinput --traceback 2>&1 | sed '/^Post-processed/d;/^Copying/d;/^$/d' | indent python "$MANAGE_FILE" collectstatic --noinput --traceback 2>&1 | sed '/^Post-processed/d;/^Copying/d;/^$/d' | indent
COLLECTSTATIC_STATUS="${PIPESTATUS[0]}" COLLECTSTATIC_STATUS="${PIPESTATUS[0]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment