From 68b3e51fcd7036b9599d62e6ee5c3fdeca65da97 Mon Sep 17 00:00:00 2001 From: Junxiao Liu <jxltom@gmail.com> Date: Sat, 3 Feb 2018 20:48:23 +0800 Subject: [PATCH] Fix PYTHONPATH is not set when running collectstatic --- bin/steps/collectstatic | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/steps/collectstatic b/bin/steps/collectstatic index 647ab92d..989490be 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]}" -- GitLab