Hi Jinja list,

i've got a really simple template that should display the name of the user 
that are in my database.

This data come from a postgresql db :
*
cur.execute(""" select osm_user from osm_user_statistics """)
sql_users = cur.fetchall()*

env = Environment(loader=PackageLoader('osm-stat', 'templates'))
template = env.get_template('stats.html')
result = template.render( users = sql_users)


The templates is like that :

<ul id="contributeurs">
                {% for user in users %}
                        <li>{{ user.osm_user }}</li>
                {% endfor %}
        </ul>

The fact that I dont understand is the result display two entries (I've got 
two users) but not the name of them :

        <ul id="contributeurs">

                        <li></li>

                        <li></li>

        </ul>


Could you explain me what i'm doing wrong ?

Sincerely 

Arnaud




-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/gT-NMua4hFMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to