On Oct 11, 5:43 pm, johnny <[EMAIL PROTECTED]> wrote:
> I was going over documentation on pagination and it mentions you can
> do it in two ways as follows:
>
> URL... ?page=x
> or
> (r'^objects/page(?P<page>[0-9]+)/$', 'object_list', dict(info_dict))
>
> My question is, you would use
>
> "URL... ?page=x" for regular views?
>
> "(r'^objects/page(?P<page>[0-9]+)/$', 'object_list', dict(info_dict))"
> for generic views?
>
> object_list is the function in django.views.generic.list_detail ?
>
> What is dict(info_dict) do?
>
> what is objects in "(r'^objects/page(?P<page>[0-9]+)/$'", model name?

Johnny,

This example is just trying to demonstrate that you can either
paginate urls by using http://www.example.com/somepage/?page=2, or you
can use something like http://www.example.com/somepage/2/ neither one
is restricted to custom or generic views it is all about how you
configure your urls.py.

Steve


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to