Django-weasyprint Image Not Rendered
I have used Weasyprint to render my HTML file into a PDF. However,the image is not being displayed. I tried the solution for a similar problem posted here and rewrote my code as so
Solution 1:
You probably want that base_url to be
request.build_absolute_uri('/')
– if you elide the location, you get the current request's absolute path, which is probably not something you can append /static/app/nineleaps.png to.
If that fails, you should be able to look at your runserver's console output. The request Weasyprint attempts to make (and which 404s) should be visible there...
Post a Comment for "Django-weasyprint Image Not Rendered"