In constraint tab we can use 'track to' constraint, and it has very helpful option 'target z' - use target Z axis, instead world Z.
I really wish python counterpart : to_track_quat(track, up), had this option too (maybe optional to not break api).
Description
Description