Tuesday, February 28, 2012

Re: Can't get pagination to work in django.!!!

Sorry tom! Thanks a lot mate you just made my day!

On Feb 28, 5:34 pm, Tom Evans <tevans...@googlemail.com> wrote:
> Hi. Re-read what I said:
>
> > 24      {% for entry in entries %}
>
>            ^^^^^^^^^^^^^^^^^^^
>
> > 25      <li><a href="{{ entry.link }}" >{{ entry.title }}</a>
> > {{ entry.posted }} {{ entry.submitter }}</li>
> > 26      {% endfor %}
>
> Compare and contrast what you are doing with 'entries' in that for
> loop and what the docs do with the equivalent object in the linked
> example, 'contacts'.
>
> This is the part of the docs I linked you to:
>
> {% for contact in contacts.object_list %}
>     {# Each "contact" is a Contact model object. #}
>     {{ contact.full_name|upper }}<br />
>     ...
> {% endfor %}
>
> Any clearer?
>
> Cheers
>
> Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment