djangeasypdf显示无内容

2024-04-29 18:39:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用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}$

我不知道我错过了什么。在


Tags: 文件thedjangodividdataherepdf