A sensible thing is to equip ithe aircraft with a simple chart wiith the bearings to the three closest airports, along with the frequencies, and make the student aware of D & D prior to solo. The other option is to get the instructor airbourne in another aircraft and 'shepherd' the aicraft to the diversion airport.