Question: I have some values store in my database in this format  `["Same Drive","Test Drive","Safe Drive"]`, and same values are displaying on my HTML page, I want to display these values in this format `Same, Test, Safe Drive`, Please let me know how I can display these values in this formant.

here is my HTML file code..

```
<p>{{datas.types}}</p>

```

and this is displaying data in this format `["Same Drive","Test Drive","Safe Drive"]`

Answer: 
You can achieve this using Django template filters inside your template.

```
{{ datas.types|join:", " }}.

```

You can find more about Django template filter here: [Django template filters](https://docs.djangoproject.com/en/3.1/ref/templates/language/#filters).
Create a custom template tag which converts this string which is in the format `["Same Drive","Test Drive","Safe Drive"]` into a python list using `json` and returning a string in the desired format.

```py
# your_app/templatetags/custom_tags.py

from django import template

import json

register = template.Library()

@register.filter(name='convert_list_to_string')
def convert_list_to_string(value):
   data = json.loads(value) # convert string to list
   return ', '.join([e for e in data]) # create a string and return

```

in your template you can use this as

```
{% load custom_tags %}

<p>{{ datas.types|convert_list_to_string }}</p>

```

Create custom template tags [docs](https://docs.djangoproject.com/en/3.0/howto/custom-template-tags/#custom-template-tags-and-filters)