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

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -