# data isn't showing in django HTML

**URL:** <https://forum.djangoproject.com/t/data-isnt-showing-in-django-html/16892>\
**Category:** Templates & Frontend\
**Created:** [November 8, 2022, 4:17pm UTC](https://forum.djangoproject.com/t/data-isnt-showing-in-django-html/16892 "2022-11-08T16:17:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankur520](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ankur520/32/6170_2.png) [@ankur520](https://forum.djangoproject.com/u/ankur520)\
**Post date:** [November 8, 2022, 4:17pm UTC](https://forum.djangoproject.com/t/data-isnt-showing-in-django-html/16892/1 "2022-11-08T16:17:30Z")

</div>

**I want to show tradingsymbol but isn’t showing help me how to do this**

```
Positiondata = {
'net': [{'tradingsymbol': 'NIFTY22N1018200CE', 'exchange': 'NFO', 'instrument_token': 12368386, 'product': 'MIS', 'quantity': 100, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 80, 'close_price': 0, 'last_price': 78.85, 'value': -8000, 'pnl': -115.00000000000091, 'm2m': -115.00000000000091, 'unrealised': -115.00000000000091, 'realised': 0, 'buy_quantity': 100, 'buy_price': 80, 'buy_value': 8000, 'buy_m2m': 8000, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 100, 'day_buy_price': 80, 'day_buy_value': 8000, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}], 
'day': [{'tradingsymbol': 'NIFTY22N1018200CE', 'exchange': 'NFO', 'instrument_token': 12368386, 'product': 'MIS', 'quantity': 100, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 80, 'close_price': 0, 'last_price': 78.85, 'value': -8000, 'pnl': -115.00000000000091, 'm2m': -115.00000000000091, 'unrealised': -115.00000000000091, 'realised': 0, 'buy_quantity': 100, 'buy_price': 80, 'buy_value': 8000, 'buy_m2m': 8000, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 100, 'day_buy_price': 80, 'day_buy_value': 8000, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}]
}

```

dataArray = {  
“positionData” : Positiondata  
}

```
 <tbody> {% for key, value in positionData.items %} <tr>
                
                  <td> {{ key }} </td>
                  <td> {{ value }} </td>
                  <td>
                    <b> {{ net.tradingsymbol }} </b>
                  </td>
                
                </tr> {% endfor %} </tbody>

```

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 8, 2022, 5:14pm UTC](https://forum.djangoproject.com/t/data-isnt-showing-in-django-html/16892/2 "2022-11-08T17:14:01Z")

</div>

What are you passing into your render function as the context?

Also, notice in your loop your iteration values are `key` and `value`, you don’t have anything named `net` within that loop.

Finally, focus on what each data type is for every reference. You have multiple “layers” of data defined here.

---

<div class="post-metadata">

**Author:** ![AhmdMWddh](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ahmdmwddh/32/21707_2.png) [@AhmdMWddh](https://forum.djangoproject.com/u/AhmdMWddh)\
**Post date:** [November 9, 2022, 11:23am UTC](https://forum.djangoproject.com/t/data-isnt-showing-in-django-html/16892/3 "2022-11-09T11:23:28Z")

</div>

> [@ankur520](#):
>
> ```auto
> Positiondata = {
> 'net': [{'tradingsymbol': 'NIFTY22N1018200CE', 'exchange': 'NFO', 'instrument_token': 12368386, 'product': 'MIS', 'quantity': 100, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 80, 'close_price': 0, 'last_price': 78.85, 'value': -8000, 'pnl': -115.00000000000091, 'm2m': -115.00000000000091, 'unrealised': -115.00000000000091, 'realised': 0, 'buy_quantity': 100, 'buy_price': 80, 'buy_value': 8000, 'buy_m2m': 8000, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 100, 'day_buy_price': 80, 'day_buy_value': 8000, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}], 
> 'day': [{'tradingsymbol': 'NIFTY22N1018200CE', 'exchange': 'NFO', 'instrument_token': 12368386, 'product': 'MIS', 'quantity': 100, 'overnight_quantity': 0, 'multiplier': 1, 'average_price': 80, 'close_price': 0, 'last_price': 78.85, 'value': -8000, 'pnl': -115.00000000000091, 'm2m': -115.00000000000091, 'unrealised': -115.00000000000091, 'realised': 0, 'buy_quantity': 100, 'buy_price': 80, 'buy_value': 8000, 'buy_m2m': 8000, 'sell_quantity': 0, 'sell_price': 0, 'sell_value': 0, 'sell_m2m': 0, 'day_buy_quantity': 100, 'day_buy_price': 80, 'day_buy_value': 8000, 'day_sell_quantity': 0, 'day_sell_price': 0, 'day_sell_value': 0}]
> }
> 
> ```

i guess the reason is the types of data you rendering.  
you have `Positiondata` is an object ().  
and `Positiondata.keys values is an Array ().

i guess this will be :

```auto
<b> {{ key.tradingsymbol[0] }} </b>

```

---

<div class="post-metadata">

**Author:** ![ankur520](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ankur520/32/6170_2.png) [@ankur520](https://forum.djangoproject.com/u/ankur520)\
**Post date:** [November 9, 2022, 2:04pm UTC](https://forum.djangoproject.com/t/data-isnt-showing-in-django-html/16892/4 "2022-11-09T14:04:05Z")

</div>

> [@AhmdMWddh](#):
>
> `key.tradingsymbol[0]`

Could not parse the remainder: ‘[0]’ from ‘key.tradingsymbol[0]’
