Re: Pagination of more than one field

2011-09-07 Thread OC
works as a charm thanks On 7 ספטמבר, 17:05, Malcolm Box wrote: > On 7 September 2011 14:57, OC wrote: > > > > > > > Thank you very much for your reply, > > I changed it but I guess Im doing something wrong cause it still > > doesnt work: > > It tries to go to the right page now, but provides

Re: Pagination of more than one field

2011-09-07 Thread Malcolm Box
On 7 September 2011 14:57, OC wrote: > Thank you very much for your reply, > I changed it but I guess Im doing something wrong cause it still > doesnt work: > It tries to go to the right page now, but provides nothing although I > know there's more than one page: > > in views.py > movies_page= in

Re: Pagination of more than one field

2011-09-07 Thread OC
Thank you very much for your reply, I changed it but I guess Im doing something wrong cause it still doesnt work: It tries to go to the right page now, but provides nothing although I know there's more than one page: in views.py movies_page= int(request.GET.get('page','1')) try: movies

Re: Pagination of more than one field

2011-09-07 Thread Malcolm Box
On 7 September 2011 08:25, OC wrote: > also attaching relevant parts of view.py: > > > movpagin = Paginator(movies, 12) > >page = int(request.GET.get('page','1')) >try: >moviesp = movpagin.page(page) >except PageNotAnInteger: ># If page is not an integer, deliver firs

Re: Pagination of more than one field

2011-09-07 Thread bruno desthuilliers
On Sep 6, 4:41 pm, Yaşar Arabacı wrote: > I think your question can be solved with javascript and ajax, rather than > with django. How is your knowledge in that area? This can definitly be resolved with Django, and it's always better to have something working without js / ajax when possible (you

Re: Pagination of more than one field

2011-09-07 Thread OC
also attaching relevant parts of view.py: movpagin = Paginator(movies, 12) page = int(request.GET.get('page','1')) try: moviesp = movpagin.page(page) except PageNotAnInteger: # If page is not an integer, deliver first page. moviesp = movpagin.page(1) exc

Re: Pagination of more than one field

2011-09-06 Thread OC
I am familiar with js but not with ajax I thought that django supports these kind of matters ... isnt it trivial? Attached the code Please advise {% for movie in movies.object_list %#} {{movie.name}} {% e

Re: Pagination of more than one field

2011-09-06 Thread Yaşar Arabacı
I think your question can be solved with javascript and ajax, rather than with django. How is your knowledge in that area? 2011/9/6 OC > Hi, > > I am new to django and I have a pagination question: > In my web page I need to display 2 query results of two different > tables > Each result is disp

Pagination of more than one field

2011-09-06 Thread OC
Hi, I am new to django and I have a pagination question: In my web page I need to display 2 query results of two different tables Each result is displayed in a different div in the same page. How can I implement "multiple" pagination meaning that each result is displayed in its own panel and has