Closed pceuropa closed 3 years ago
OK i found solution on https://stackoverflow.com/questions/24071290/generating-pdf-with-wkhtmltopdf-django
by add STATIC_ROOT = '/static/'
Thanks for reporting the bug. I have updated the README with instruction, for anyone else having this issue.
After click on download PDF i've received
http://127.0.0.1:8000/invoices/1786f85d-47d9-4a08-8852-3104227ba7bb/download/ 3.1 AttributeError 'NoneType' object has no attribute 'endswith' /home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages/wkhtmltopdf/utils.py, line 296, in make_absolute_paths /home/m/Desktop/localhost/django-tt/venv/bin/python3 3.8.2 ['/home/m/Desktop/localhost/django-tt/project', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/m/Desktop/localhost/django-tt/venv/lib/python3.8/site-packages'] Thu, 27 Aug 2020 12:11:58 +0000 `