Bonds issued by a district, and bonds issued for any improvement district therein, shall be payable, both principal and interest, from assessments upon the lands in the district or improvement district, as the case may be, unless proceedings have been taken substantially as provided in this division for such bonds to be payable from assessments levied upon all real property in the district or in the improvement district, as the case may be.