(a) No building is to be erected, used, occupied, moved, or altered in a manner that does not conform to the requirements specified for the district in which it is located. (b) The only exception to this requirement is that all buildings or uses which lawfully existed at a particular location at the time the ordinance from which this chapter is derived was adopted may be continued as nonconforming uses.