add django imports backwards-compatible