Skip to content Skip to sidebar Skip to footer

How To Pass Variable From Python Api To Django Template

I have been trying to work with this Python sports data api, Sportsipy. It’s pretty simple to set up and I can save data to a var and print it to the terminal but when I add it t

Solution 1:

I'm not sure if it is the correct answer but shouldn't your for loop have elements of the for loop? What I'm trying to say is in the template shouldn't it be like

{% for game in team_schedule %}
         <div><h4class="white">{{ game.boxscore.away_total_rebounds }}</h4></div>
    {% endfor %} 

EDIT: Abdul's answer added

Post a Comment for "How To Pass Variable From Python Api To Django Template"