Re: ObjectPaginator

2009-01-28 Thread Patricio Palma
Yeah, versions problems I fix it downloading the lasted rosetta version from svn. svn co http://django-rosetta.googlecode.com/svn/trunk/ Ty a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: ObjectPaginator

2009-01-28 Thread Justin Myers
Pagination changed quite a bit in 1.0. There's a chance you'll have to change more than simply get_page(). An easier-to-read list of the Paginator and Page methods and attributes is here: http://docs.djangoproject.com/en/dev/topics/pagination/#paginator-objects (I ran into the same problem trying

Re: ObjectPaginator

2009-01-27 Thread leonel
Patricio Palma wrote: > Hi guys. > I'm trying to use Rosetta ( http://code.google.com/p/django-rosetta/ ) > > in a view (home, a rosetta views) is using a ObjectPaginator and > InvalidPage but i've a execption > cant find module ObjectPaginator. > >

ObjectPaginator

2009-01-27 Thread Patricio Palma
Hi guys. I'm trying to use Rosetta ( http://code.google.com/p/django-rosetta/ ) in a view (home, a rosetta views) is using a ObjectPaginator and InvalidPage but i've a execption cant find module ObjectPaginator. Googling I fix it using from django.core.paginator import Pa

ObjectPaginator Performance in Busy Sites

2007-08-31 Thread Sebastian Macias
I'm building an app that requires pagination. I looked at the official pagination documentation I found at: http://www.djangoproject.com/documentation/models/pagination/ I followed the tutorial and basically: paginator = ObjectPaginator(Article.objects.all(), 5) is where all the "magi

Re: ObjectPaginator Performance in Busy Sites

2007-08-31 Thread James Bennett
ormance > will be poor in and very busy site. > > Should I be concerned about this? What are your thoughs? No, because the ObjectPaginator does only two queries: one is a COUNT to determine whether the specific page of the Paginator being request is valid (and to fill the "hits&q

Re: ObjectPaginator Performance in Busy Sites

2007-08-31 Thread Florian Apolloner
umentation I found at: > > http://www.djangoproject.com/documentation/models/pagination/ > > I followed the tutorial and basically: paginator = > ObjectPaginator(Article.objects.all(), 5) is where all the "magic" > happens. > > What I'm concerned about is that

ObjectPaginator misbehaving with custom query_sets

2007-02-15 Thread [EMAIL PROTECTED]
umn 'kb_article_contententry.id' in 'where clause'"). As I see it, this is the subquery, failing to execute, since the count probably does not add the necessary joins for it to be valid. The problem comes when the ObjectPaginator tries to select the "hits" pr