Django Template Limit String Longueur

{{ my_variable|slice:":255" }}
Talented Thrush