[Django]-Substring in a django template? 9 December 2023 by thecoderscamp.com 59👍 ✅ Use the slice template filter: {{ obj.name|slice:"0:3" }} 👤catavaran [Django]-Django character set with MySQL weirdness Source:stackexchange.com