On Wed, Jul 29, 2009 at 10:04 AM, Mark wrote:
>
> Ye thats what I was afraid of - i was hoping there was something in
> the Pagination object that would help me out.
> But I cant see anything.
>
> Maybe someone will point it out after I have implemented the above.
>
> Thanks.
>
> On Jul 29, 3:58 p
Ye thats what I was afraid of - i was hoping there was something in
the Pagination object that would help me out.
But I cant see anything.
Maybe someone will point it out after I have implemented the above.
Thanks.
On Jul 29, 3:58 pm, cootetom wrote:
> You may have to do a bit of computation b
You may have to do a bit of computation back on the server in python
code to get the data you're after. From the pagination object you know
what page you are currently on, you also know how many items are on a
page so:
last_item = page_num * items_per_page
first_item = last_item - items_per_page
These seem to be what I am looking for - but they are not available in
the template from what I see.
page2.start_index()
page2.end_index()
On Jul 29, 3:51 pm, Mark wrote:
> Thanks, but I have been. Its still not clear - To date I have always
> beendisplaying
>
> "Page 1 of 23. Showing 10results
Thanks, but I have been. Its still not clear - To date I have always
been displaying
"Page 1 of 23. Showing 10 results per page"
I am just lost on how to do this.
On Jul 29, 3:44 pm, krylatij wrote:
> Read
> documentationhttp://www.djangoproject.com/documentation/models/pagination/
--~--~
Yes, have a read of the documentation. When you create a pagination
class you have access to all the variables needed that tell you how
many pages there are, what page you are currently on etc.
http://docs.djangoproject.com/en/dev/topics/pagination/#topics-pagination
On Jul 29, 3:15 pm, Aldo w
Read documentation
http://www.djangoproject.com/documentation/models/pagination/
--~--~-~--~~~---~--~~
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
I want to display to my html page
Displaying results 1- 10 of 55322 found.
Is there something straight forward in the pagination to do this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
8 matches
Mail list logo