django templates, find string replace with other string -
Hey, I'm writing some templates, but I want to convert it to "_" within a string.
I converge from something like "My_Name" to "My name"
{{user.name}}
Want to do . How can I do this?
There is no underlying tag or filter for this replacement. Write a filter that is divided by a given character Be sure to combine it with the join
filter, or type the filter directly into the replacement.
Comments
Post a Comment