It seems awfully harsh to sell the house. Is it always all or nothing?

No, it’s not always all or nothing. The court may agree to let one spouse live in the house (for example, the spouse with custody of the children) for a period of time, until a definite date or upon the occurrence of some event. At that time the house will then be sold and the proceeds divided.