Thanks. That works. On Jan 27, 1:26 pm, Malcolm Box <malcolm....@gmail.com> wrote: > On Wed, Jan 27, 2010 at 6:10 PM, Zeynel <azeyn...@gmail.com> wrote: > > Hello, > > > How do I query the the total number of items in the database to put in > > a template? > > > I want to add to this pagehttp://swimswith.com/search/that "There > > are currently [X] lawyers in the database." > > Have a look at the count() method on Querysets. > > So something like: Lawyers.objects.count() will be the answer. > > Cheers, > > Malcolm
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.