Delia platura Meigen is an important pest in crops around the world. Its host range includes almost 50 species, and it can develop in soil organic matter. In Ecuador, D. platura is a serious problem for the crop, Lupinus mutabilis Sweet (Chocho), and it also attacks broccoli (Brassica oleracea L.). After broccoli is harvested, crop residue is mixed with soil or collected and stored close to Chocho fields. The objectives of this study were to determine the adaptive responses of larvae reared on different hosts and whether D. platura females are preferentially attracted to germinating L. mutabilis seeds or broccoli residue. Accordingly, larval performance and attraction of female D. platura reared on broccoli residue and L. mutabilis seeds were evaluated. The number of larvae, pupae, and adults were higher when reared on broccoli. Conversely, pupal weight was higher and time from larva to pupa, pupa to adult, and total life cycle were longer in flies reared on L. mutabilis. Although D. platura developed more quickly on broccoli, L. mutabilis was also a good host since pupae were heavier compared with flies reared on broccoli. Delia platura females reared on broccoli preferred broccoli residue to L. mutabilis in an olfactometer. Volatiles from broccoli residue in soil may attract D. platura females and stimulate oviposition on L. mutabilis seeds. Environmentally benign production of L. mutabilis crops with minimal insecticide applications may require the elimination of fresh broccoli residue as fertilizer in soils where L. mutabilis is cultivated.