Py学习  »  问与答

Templdate 过滤方法 linebreaksbr 如何用到 view 中?

ithelloworld • 11 年前 • 6073 次点击  

linebreaksbr 是在template中使用的过滤数据的方法,如:

<td>{% filter linebreaksbr %}{% render_task_result task %}{% endfilter %}</td>

要想在view.py中进行同样效果的过滤,下载成CSV文件,如何做到呢?有没有类似的方法呢?

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/144
 
6073 次点击  
文章 [ 2 ]  |  最新文章 11 年前