ZR
Size: a a a
ZR
s
template_path = 'orders/address_letter.html'Ругается на это:
template = get_template(template_path)
result = StringIO()
html = template.render(context_data)
In [17]: pdf = pisa.CreatePDF(str(html), result, encoding='UTF-8', show_error_as_pdf=True)
Need a valid file name!
'<img src="/static/img/emskz.gif" width="300"/>'
Need a valid file name!
'<img src="/static/barcode.svg" width="200"/>'
Need a valid file name!
'<img src="/static/img/weight_bg.png" width="70"/>'
АА
АА
N
collectstatic делал?АА
collectstatic делал?SA
template_path = 'orders/address_letter.html'Ругается на это:
template = get_template(template_path)
result = StringIO()
html = template.render(context_data)
In [17]: pdf = pisa.CreatePDF(str(html), result, encoding='UTF-8', show_error_as_pdf=True)
Need a valid file name!
'<img src="/static/img/emskz.gif" width="300"/>'
Need a valid file name!
'<img src="/static/barcode.svg" width="200"/>'
Need a valid file name!
'<img src="/static/img/weight_bg.png" width="70"/>'
SA
АА
SA
SA
SA
SA
ZR