Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Flask application displaying list of items from SQL database as text

<!DOCTYPE html>
<html>
    <body>
        <div class = item>
            <ul>
                {% for product in products %}
                    <li>{{product.title}}, {{product.price}}</li>
                {% endfor %}
            </ul>
        </div>
    </body>
</html>
 
PREVIOUS NEXT
Tagged: #Flask #application #displaying #list #items #SQL #database #text
ADD COMMENT
Topic
Name
4+4 =