2

I have an ordered dict generator (output from pycassa query). It has the format {'key_0': 'value_0'}

I am having trouble iterating over it.

I am trying

{% for k in results %}
    {{ k }}
{% end for %}

but I only get the key. i.e., 'key_0'

When I try {% for k, v in results.items %}

I get 'Content-Type' and 'text/html; charset=utf-8' respectively

When I try {% for k, v in results.iteritems %}

yields no results at all

Any ideas?

4

0 回答 0