The community shall have a general plan which complies with Article 5 (commencing with Section 65300) of Chapter 3 of Division 1 of Title 7 of the Government Code, and which includes, but is not limited to, a housing element that substantially complies with state law.