直接用过滤器就可以实现。
<div class="postCon">{{ article.body | truncatechars:120 }}</div>
Django中首页显示文章摘要
原文:https://www.cnblogs.com/lanhuakai/p/14682301.html