exit 1
else
echo "Attempt $attempt_num failed! Trying again in 5 seconds..."
-
fi
attempt_num=$(("$attempt_num" + 1))
# of the current container starts.
flock 200
echo "Apply database migrations..."
- python3 manage.py migrate
+ python3 manage.py migrate --skip-checks --no-input
) 200>"${DATA_DIR}/migration_lock"
}
+django_checks() {
+ # Explicitly run the Django system checks
+ echo "Running Django checks"
+ python3 manage.py check
+}
+
search_index() {
local -r index_version=1
migrations
+ django_checks
+
search_index
superuser