Thanks Samuel. I tried that, too, but all p.X seemed to return was the
index of the tuple (1, 2, etc).
On Sep 12, 2:54 pm, Samuel Adam <[EMAIL PROTECTED]> wrote:
> Try this :
>
> {% for p in posts %}
> {{ p.0 }}
> {{ p.1 }}
> {% endfor %}
>
> :P
Try this :
{% for p in posts %}
{{ p.0 }}
{{ p.1 }}
{% endfor %}
:P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
> How about something like this:
>
> {% for p in posts %}
> {{ p.headline }}
> {{ p.body }}
> {% endfor %}
That's what I thought SHOULD work, but it's not. I think I may just
take a different route with it.
--~--~-~--~~~---~--~~
You received this
>
> Problem is, I can't manage to do anything with posts in my template.
What exactly are you trying to do that's not working?
> When I view source, I see an object reference, so I know it's getting
> there, and I know this is probably a terribly dumb question, but how
> do I access posts?
How
I'm trying to use django-voting's get_top function:
``get_top(Model, limit=10, reversed=False)`` -- Gets the top
``limit`` scored objects for a given model.
If ``reversed`` is ``True``, the bottom ``limit`` scored objects
are retrieved instead.
Yields ``(object,
5 matches
Mail list logo