filter titlecase django

# Displays 'johndoe' as 'Johndoe'
{{ firstname|title }}

Here is what the above code is Doing:
1. It’s creating a variable called firstname and assigning it the value ‘johndoe’.
2. It’s using the title filter to display the value of firstname as ‘Johndoe’.

The title filter is just one of the many filters that Django ships with. You can find the full list of built-in filters in the Django documentation.