Django uses templates filter to limit the number of characters
slice
filter, which treats the string as a list of characters. truncatewords
.truncatewords
added an ellipsis …
at the end of the truncated result.
slice
usage¶{{ variable|slice:":255" }}
truncatewords
¶{{ variable|truncatechars:255 }}