Re: Novice questions about Pagination syntax and classes in general

2019-06-01 Thread John Bagiliko
I will answer question two. I'm not sure I understand your question 1. The "objects" is query method of every Django model. You use it to query. Contacts should be in your models.py and you should import Contacts in your views.py before you can use it. On Sun, Jun 2, 2019, 1:08 AM drone4four wro

Novice questions about Pagination syntax and classes in general

2019-06-01 Thread drone4four
As part of the official Django doc on Pagination , take a look at the listing function: def listing(request): contact_list = Contacts.objects.all() paginator = Paginator(contact_list, 25) # Show 25 con