To get the length of a string in a template with Django, a solution is to use the filter length: {{ value|length }}. Example: {{ title|slice:":35" }} {% if ...
確定! 回上一頁