TECH I.S. テックアイエスガイド エディター
template.html
views.py
<!DOCTYPE html> <html> <body> <ul> {% for x in fruits %} <li {% if forloop.last %} style='background-color:lightblue;' {% endif %} >{{ x }}</li> {% endfor %} </ul> <p>In views.py you can see what the fruits object looks like.</p> </body> </html>
127.0.0.1:8000/testing
Try It | Online Web Tutorials