Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8510469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:42:50+00:00 2026-06-11T03:42:50+00:00

I am using django and python. I am passing post from views and I

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:42:51+00:00Added an answer on June 11, 2026 at 3:42 am

    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:

     new_destination = post.destination.replate(',', '\n')
    

    In template, use linebreaksbr filter which puts <br/> tag for each new line.

    {{new_destination|linebreaksbr}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi i am working on a django python application using sqlite3 database. I have
I'm using Django and Python unicode_countries = request.POST.getlist(u'countries') Returns [u'ai', u'ag', u'aw', u'bs'] My
I'm working with a sqlite database, using python/django. I would need to have my
I'm using Django (and Python) for the first time, and I'm looking for the
I tried to add search fields in Django using python. Followings are the codes
I am using django 1.4 and Python 2.7. I just have a simple requirement
I'm developing a web app in Python 2.7 using Django 1.4 with PyCharm 2.5
I'm writing a simple blog using Django, and I'm including a Python CLI script
I am using Google motion-charts in a web-site developed in python/django. Is there a
I'm fairly new to both Django and Python. This is my first time using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.