Simple, make homework optional. A math teacher I had never forced homework on us. He'd give it everyday but never penalized you if you didn't do it. However, every test he gave us usually tied in with some of the homework. If you never did your homework you were pretty much screwed. Usually after the first test was given, everyone started doing the homework. It wasn't really that hard either, maybe 20 minutes which made it worth the effort...