Django Book 翻译
菜单>:
TOC
返回
原文:
* Hooking into the ReportLab API is easy: just pass ``response`` as the first argument to ``canvas.Canvas`` . The ``Canvas`` class expects a filelike object, and ``HttpResponse`` objects fit the bill.
翻译:
* 使用 ReportLab 的 API 很简单:只需要将 ``response`` 对象作为 ``canvas.Canvas`` 的第一个参数传入。 ``Canvas`` 类需要一个类似文件的对象, ``HttpResponse`` 对象可以满足这个要求。
备注:
译者: