jeudi 24 mars 2016

Python code not running in HTML (that is rendered by flask)

This image contains the output

This is the code:

{% for post in posts[0:4] %}
    <%
    filename = post.filename
    filePath = 'http://127.0.0.1:5000'+url_for('uploaded_file', filename=filename)
    %>
    <h3>{{post.title}}</h3>
{% endfor %}




Aucun commentaire:

Enregistrer un commentaire