Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ run_weblate() {
"$WEBLATE_CMD" "$@"
}

# Compatibility with older Weblate releases, remove in 2026.8.
weblate_has_compress() {
run_weblate help --commands | grep -qx compress
}

runserver_has_web_service() {
local weblate_service=${WEBLATE_SERVICE:-}
[[ -z $weblate_service || $weblate_service == "web" ]]
Expand Down Expand Up @@ -395,23 +390,14 @@ run_startup_maintenance() {
fi

collect_web_static_assets
if weblate_has_compress; then
# Compress js and css.
run_weblate compress --force --traceback
fi
}

collect_web_static_assets() {
if [[ ${EARLY_COLLECTSTATIC_DONE:-0} == 1 ]]; then
return 0
fi

if weblate_has_compress; then
# Run with --clear to ensure all files are up to date.
run_weblate collectstatic --noinput --clear
else
run_weblate collectstatic --noinput
fi
run_weblate collectstatic --noinput

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep 2026.7 static compression until the version bump

In this commit's tree the Dockerfile still pins WEBLATE_VERSION=2026.7.1, which is the pre-2026.8 code path that still needs weblate compress after collectstatic --clear. With this unconditional 2026.8 path, a normal runserver container built from this commit never generates the django-compressor offline output for 2026.7, so pages using compressed assets can fail or serve stale/missing CSS/JS until the Weblate version is actually bumped. Please keep the old probe/path or include the 2026.8 version bump in the same change.

Useful? React with 👍 / 👎.

EARLY_COLLECTSTATIC_DONE=1
}

Expand Down
Loading