I want to model through Python Flask service,I created a cyclinder and obtained the object through bpy.context.active_object,Then the following error was reported:AttributeError: 'Context' object has no attribute 'active_object'.How to deal with it?

This is a forum for Blender development. For questions about using Blender, feature requests and bugs, please use the links above. Forum rules.