I want to pad and cut too long chars. So I used stringformat. In this example, I want my string to be 10 characters long, with padding if necessary. I have this code in my django template
{{ "my too long or too short string"|stringformat:":10" }}
But django outputs nothing.