django template truncatewords in the end code example Example: truncate templat tag django {{ value|truncatechars:9 }}