raise an CommandError with an argument string "AppCommand cannot handle app '%s' in legacy mode because it doesn't have a models module.", where '%s' is replaced by app_config.label.
raise CommandError ( "AppCommand cannot handle app '%s' in legacy mode " "because it doesn't have a models module." % app_config . label )