replace '%s' in string '%s.management.commands.%s' with app_name and name, respectively, use it as an result for the call to the
module = import_module ( '%s.management.commands.%s' % ( app_name , name ) )