I am using django and python.
I am passing post from views and I am displaying destination as {{post.destination}} using django template. If the database value for destination is "Shakespeare,Edison,Fleming" I need to replace ',' by new line.
Anyone help me.
There is not one step solution for this.
What you can do is, in your view make a string replacing
','with'\n'and use it in template to show as line breaks.e.g.
in view:
In template, use
linebreaksbrfilter which puts<br/>tag for each new line.