Edit word document with Django

I have a fixed template for each test in Word documents, which can include complex tables with tens of rows and columns, as well as images. In my Django project, I want to use these templates to add data relevant to each test, such as specifications, remarks, test results, and multiple images of the product being tested. The number of tests could exceed 100. Can you suggest an optimized solution to achieve this?