I have a small test application for creating pdf from my webapp. It uses weasyprint and works ok in my local computer, but when i try to run it in production I receive error 504-backend after long time of waiting. Inside the html page there is a picture, it is shown when i see the page on production. When I remove the picture, the weasyprint does its job and shows the document correctly.
How can I solve the problem that Weasyprint would be able to process images inside pythonanywhere.com