我想用Django轻松pdf来呈现一个pdf文件。我跟踪了these instructions,但是我得到了一个空的pdf。在
这是我的html:
{% extends "easy_pdf/base.html" %}
{% block extra_style %}
{% endblock %}
<% block content %>
<div id="summary-block">
<p>Here goes that square with data.</p>
</div>
<div id="declarations-block">
<p>Here goes the Main content.</p>
</div>
<div id="data-block">
<p>Here goes all the data from the contract.</p>
</div>
<div id="clause-block">
<p>Here goes the Clause content.</p>
</div>
<div id="signatures-block">
<p>Here goes the signatures content.</p>
</div>
<% endblock %>
这是我的views.py
:
我不知道我错过了什么。在
虽然答案有点晚,但您的错误是在模板中混用了<;>;和{}。在
而不是
应该是的
^{pr2}$相关问题 更多 >
编程相关推荐