Compare commits

...

1 Commits

Author SHA1 Message Date
MickLesk
c02e5fd006 fix(babybuddy): set DJANGO_SETTINGS_MODULE before migrate in update
The upgrade from 2.7.1 to 2.8.0 fails because manage.py migrate
is called without DJANGO_SETTINGS_MODULE being set, causing Django
to raise ImproperlyConfigured. The install script sets it but the
update function was missing it.

Closes #13800
2026-04-18 21:42:04 +02:00

View File

@@ -48,6 +48,7 @@ function update_script() {
mv /tmp/production.py.bak /opt/babybuddy/babybuddy/settings/production.py
source .venv/bin/activate
$STD uv pip install -r requirements.txt
export DJANGO_SETTINGS_MODULE=babybuddy.settings.production
$STD python manage.py migrate
msg_ok "Updated ${APP}"