replace '%s' in a string "Created new squashed migration %s" with writer.path, use it as an argument for the call to the method,
self . stdout . write ( self . style . MIGRATE_HEADING ( "Created new squashed migration %s" % writer . path ) )