On Thu, May 21, 2009 at 5:10 AM, Chris Withers wrote:
> What was your solution in the end? I'm always interested this kind of
> batching of results, and I'm very new to Django...
The Django tutorial mentions this -- a Django QuerySet is "lazy",
which means that it
Rodrigo Aliste P. wrote:
> OH! It does it alone! Another awesome thing to my awesomeness list of
> django.
What was your solution in the end? I'm always interested this kind of
batching of results, and I'm very new to Django...
Chris
--
Simplistix - Content Management, Zope & Python
OH! It does it alone! Another awesome thing to my awesomeness list of
django.
2009/5/20 Rodrigo
> Hi users and devs
>
> In the next example for pagination:
>
>contact_list = Contacts.objects.all()
>paginator = Paginator(contact_list, 25) # Show 25 contacts per
> page
Hi users and devs
In the next example for pagination:
contact_list = Contacts.objects.all()
paginator = Paginator(contact_list, 25) # Show 25 contacts per
page
Consider that Contacts.objects.all() returns a list with 1.000.000
objects, and I want to paginate to 25 objects per page.
4 matches
Mail list logo