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?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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