Re: Pagination in ListView

2012-01-04 Thread J. Cliff Dyer
s the page I'd have to pick up from. So to that effect you could make negative pagination work something like negative indexing in python. Cheers, Cliff On Wed, 2012-01-04 at 15:03 -0500, Dennis Lee Bieber wrote: > On Wed, 4 Jan 2012 17:23:12 +, Tom Evans > wrote: > > >O

Re: digg style pagination

2009-09-07 Thread Michael Ralan
It's possible to get digg-style pagination yes. What you need to do is this. Get the django-pagination add-on from the following url http://code.google.com/p/django-pagination/ The documentation says unzip the pagination folder to a path accessible to python. This is usually taken to mean

Re: digg style pagination

2009-11-18 Thread Oleg Oltar
I am trying to use the application http://code.google.com/p/django-pagination/, that you proposed in the latest post. But getting an exception. Could you help to fix it please? TemplateSyntaxError at /section/home Caught an exception while rendering: 'request' Original Traceback (m

Re: digg style pagination

2009-11-19 Thread Tim Chase
jango/template/debug.py", > line 71, in render_node > result = node.render(context) > File > "/opt/local/lib/python2.5/site-packages/django_pagination-1.0.5-py2.5.egg/pagination/templatetags/pagination_tags.py", > line 90, in render > page_obj = paginat

Re: digg style pagination

2009-11-20 Thread Oleg Oltar
l Traceback (most recent call last): >>   File "/opt/local/lib/python2.5/site-packages/django/template/debug.py", >> line 71, in render_node >>     result = node.render(context) >>   File >> "/opt/local/lib/python2.5/site-packages/django_pagination-1

Re: modelformset and pagination?

2009-11-25 Thread Some Guy
e trying to create pagination with a modelformset. > so far I have... > >    SubFormSet = modelformset_factory(Submission, can_delete=True, > extra=0, form=PricingForm) > ... >    objs = Submission.objects.all() >    formset = SubFormSet(queryset=objs)  <-overriding the bas

question about django-pagination

2009-12-18 Thread Continuation
In the django-pagination, it uses the example: {% autopaginate object_list %} My question is does object_list have to be the **entire** list over which I want to paginate, or can I limit the length of object_list? If I limit the length of object_list, will autopaginate still go through the entire

pagination in a formset

2010-01-20 Thread Binu
I uses a formset factory. I only want 10 forms per page from the formset. Can I do that? -- 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 emai

Pagination with bound form

2010-10-15 Thread David
Hello I need to be able to create a form that contains data from my database. It also needs to have basic pagination at the bottom of the form as there will be many records, and I would like my users to be able to use pagination to access them (kind of like MS Access). I can produce the form ok

Doubt regarding endless pagination

2012-04-01 Thread Swaroop Shankar V
Hi All, This question is regarding a django app called endless pagination. I want to add a '|' in between the pagination numbers so that it will look like <> I went through the documents but could not figure out how to do this. If anyone have already implemented something like thi

Django Pagination Not Working!

2012-05-06 Thread coded kid
I'm trying to paginate a page in order to display five statuses per page. After inputting these codes, it fails to paginate. Below are the codes for pagination and updating of status in my django app. Views: def qask(request): extra_data_context={} #if there's

Re: Search Result Pagination

2008-05-14 Thread Adi Jörg Sieker
Hi, On 14.05.2008, at 00:47, Michael Ellis wrote: > results = paginator.page(pager) shouldn't this be results = paginator.page(pager).object_list see http://www.djangoproject.com/documentation/pagination/ adi -- Adi J. Sieker mobile: +49 - 178 -

Re: Search Result Pagination

2008-05-14 Thread Michael Ellis
> shouldn't this be > results = paginator.page(pager).object_list Thanks, Adi. I get the same result set with that. The only exception is that I get the following error: 'generator' object has no attribute 'has_next' If I comment out the 'has_next' and 'has_previous' lines in the render

Re: Search Result Pagination

2008-05-14 Thread Adi Jörg Sieker
Hi, the query parameter page=1 probably won't be there when you submit the search form. I 'd guess your forms action parameter is either empty or set to the url of your search view. Have you tried 'results': results.object_list in your render_to_response? regards adi On 14.05.2008, at

Re: Search Result Pagination

2008-05-14 Thread Michael Ellis
You're right. The form action was blank. I changed it to "/Catalog/ search/?page=1". I'm now seeing the page parameter, but I'm still seeing all the results on one page. >> Have you tried 'results': results.object_list in your render_to_response? I tried this and still no luck. Also, using "'re

Re: Search Result Pagination

2008-05-14 Thread Adi Jörg Sieker
Hi, what does the search method of your model do? I can't find any reference of a search function in the docs. adi On 14.05.2008, at 22:26, Michael Ellis wrote: > > You're right. The form action was blank. I changed it to "/Catalog/ > search/?page=1". I'm now seeing the page parameter, but I'm

Re: Search Result Pagination

2008-05-14 Thread Michael Ellis
> what does the search method of your model do? > I can't find any reference of a search function in the docs. I'm sorry, but I don't think I understand the question. I'm searching on a full-text index. ME --~--~-~--~~~---~--~~ You received this message because y

Re: Search Result Pagination

2008-05-14 Thread Adi J. Sieker
Michael Ellis wrote: >> what does the search method of your model do? >> I can't find any reference of a search function in the docs. > > I'm sorry, but I don't think I understand the question. > > I'm searching on a full-text index. > What does the search funtion return? A django queryset or

Re: Search Result Pagination

2008-05-14 Thread Michael Ellis
> What does the search funtion return? > A django queryset or a xapian result and are you sure that > the Paginator can handle the returned value? Hmmm. Great question. I believe it's returning a xapian result set. In my template, I'm looping through the paginator.object_list. Here's a simple e

Re: Search Result Pagination

2008-05-15 Thread Adi J. Sieker
Michael Ellis wrote: >> What does the search funtion return? >> A django queryset or a xapian result and are you sure that >> the Paginator can handle the returned value? > > Hmmm. Great question. > > I believe it's returning a xapian result set. > > In my template, I'm looping through the pagi

Re: Search Result Pagination

2008-05-15 Thread Michael Ellis
Adi. That got the pagination working on the first page! Thank you! I'm getting no results on page 2, however. I know this is in the way I'm handling GET requests (see the 'else' statement). I'm just not sure how this should be handled. I'll be reading some d

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
any suggestions?? hehehe On Sat, Aug 23, 2008 at 7:35 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > I have this very simple and primitive pagination method being called with > this instruction in urls.py > > ### > (r'^pyisp/menu/(\d+)/$', 'mail.views.me

Re: pagination best practices

2008-08-23 Thread Karen Tracey
On Fri, Aug 22, 2008 at 8:05 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > I have this very simple and primitive pagination method being called with > this instruction in urls.py > > [snipped] > Every time I hit something like domain/pyisp/menu/2 it shows the second &

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
> > > Using the Pagniator makes it so that when you hit the DB, the retrieved > results are limited to those relevant for the page you are displaying. You > are not reading the whole table and then tossing away everything except what > is on the page your are displaying, you are only reading from

Re: pagination best practices

2008-08-23 Thread Karen Tracey
On Sun, Aug 24, 2008 at 1:23 AM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > > So, let's say that everytime i get a page, the internat query to the db > just gets the, lets say, 10 rows that I requested? because I'm using > objects.all(). In that process, where is the DB being hit? > > Model.object

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
I think I get it... domains = g.objects.all() just makes the QuerySet and paginator = ObjectPaginator(domains, 10) executes the query limiting the records to the one requested... Excellent Thanks for your help jhv On Mon, Aug 25, 2008 at 12:53 AM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > >>

Re: pagination best practices

2008-08-23 Thread Juan Hernandez
Yep, thank you very much jhv On Mon, Aug 25, 2008 at 1:09 AM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 1:23 AM, Juan Hernandez <[EMAIL PROTECTED]>wrote: > >> >> So, let's say that everytime i get a page, the internat query to the db >> just gets the, lets say, 10 rows th

Pagination causing mySQL error

2007-05-04 Thread Merric Mercer
{% endfor %} {% for object in object_list|slice:"6:9" %}area two {% endfor %} etc My problem is that this is not working with pagination correctly when the pagination returns less than the initial slice ( in this case 6). I get the following errors (see below). Can anybody suggest

pagination for search result ...

2007-08-09 Thread james_027
hi, I am trying to put a page list for a search result. So far here's what I've try by using the django.views.generic.list_detail.object_list and the pagination tag (http://code.djangoproject.com/wiki/PaginatorTag) and later found out that it won't meet my needs. def search_e

Re: Generic View Pagination

2007-08-13 Thread Collin Grady
As the documentation for object_list says, it will append _list to template_object_name, so you should actually be checking "products_list" based on your line there :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Generic View Pagination

2007-08-14 Thread MikeHowarth
I'd read that as well Collin and obviously totally forgotten about. I'll give that a whirl! On Aug 13, 11:54 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > As the documentation for object_list says, it will append _list to > template_object_name, so you should actually be checking > "products_lis

Re: pagination documentation unclear

2007-10-11 Thread Steve Potter
On Oct 11, 5:43 pm, johnny <[EMAIL PROTECTED]> wrote: > 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[0-9]+)/$', 'object_list', dict(info_dict)) > &g

Re: Problem with Pagination

2007-10-19 Thread Greg
inator function, however when I accessed the template the assert statement never happened. Also, what is '{% spaceless %}'. They say to put that in the template? Thanks for any help On Oct 19, 10:31 am, Rob Hudson <[EMAIL PROTECTED]> wrote: > I don't think it's 100% to yo

Re: Problem with Pagination

2007-10-19 Thread Rob Hudson
I don't think it's 100% to your specs but take a look at this: http://blog.localkinegrinds.com/2007/09/06/digg-style-pagination-in-django/ It's close enough for tweaking to get you 95% of the way there (maybe). --~--~-~--~~~---~--~~ You receiv

low-level cache & pagination

2007-11-30 Thread Chris G
I have a large query that is ran and takes about 50 seconds to completely and is pretty resource intensive. So what I have done is cached it into a key via cache.set('my_query_results', results, 300) The problem is that I also use pagination which results from this query. So when nav

Pagination with Custom Views

2006-11-16 Thread [EMAIL PROTECTED]
Hey, I was just wondering if someone could help me out. I want to paginate some views, but they are not generic. This is one of the views I want to paginate: def category_list(request): categories = Category.objects.order_by('name') return shortcuts.render_to_response("blog/cate

Pagination with Custom Views

2006-11-18 Thread [EMAIL PROTECTED]
Hey Everyone, I have a custon view set up which is basically a list of all the posts within a category, which is paginated. Here is the code which I have got working so far: def category_detail(request, slug): recent_posts = Post.objects.order_by('-pub_date')[:10] category = sho

Re: Sitemaps and pagination

2006-12-11 Thread [EMAIL PROTECTED]
Personally, I think you're overthinking it, and only mapping the starting point for each topic is the appropriate (and expected) behavior. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Pagination and relative URLs

2006-07-21 Thread Maciej Bliziński
The Django documentation refers to the pagination: http://www.djangoproject.com/documentation/generic_views/#notes-on-pagination And suggests following pagination scheme: ^objects/ -- object list, first page ^objects/page2/ -- second page ^objects/page3/ -- third page, and so on Let's sa

Re: simple search pagination

2006-08-10 Thread and_ltsk
jrs wrote: > submit.x and submit.y are the coordinates of where the user clicked the > submit image. Thanks, jrs. Thus, avoiding "http://127.0.0.1:8000/tasks/search_results/?q=1&submit.=Search Do you know how to include ih such URL the "offset" and "limit" parameters? It is needed by a paginat

Re: simple search pagination

2006-08-10 Thread jrs
submit.x and submit.y are the coordinates of where the user clicked the submit image. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegro

Re: simple search pagination

2006-08-10 Thread and_ltsk
jrs wrote: > submit.x and submit.y are the coordinates of where the user clicked the > submit image. Thanks, jrs. Thus, avoiding "http://127.0.0.1:8000/tasks/search_results/?q=1&submit.=Search Do you know how to include ih such URL the "offset" and "limit" parameters? It is needed b

Re: simple search pagination

2006-08-10 Thread and_ltsk
Excuse me for multiple posts. I've sent these post from Thurs, Aug 10 2006 11:08 am, but Google has published it only at Thurs, Aug 10 2006 3:32 pm. every time giving me fake message about "momentarily" publishing of my posts. --~--~-~--~~~---~--~~ You received t

'Pythonicity', pagination and readability.

2006-08-15 Thread Jon Atkinson
Hi, One of the things which I love about django is the lack of code I have to write. I recently refactored some of my views from approximately 30 lines of code down to just two, but I'm worried about the readablity of my code. For the simplest view, I think my code looks fine, and it's pretty re

Pagination - displaying page numbers

2006-03-23 Thread Stephen
Hello, I've just started looking at Django, it's certainly looking like a very good choice for the sort of projects I'll be doing in the near future. Just now I've been looking at pagination and have a question: I'm using the generic view "list_detail" to

Re: Pagination - Not Working

2019-02-18 Thread Siddharth Tamang
Are you trying pagination using JavaScript or Django? On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal wrote: > Hello Everyone, > > I am new to Django and working towards developing a web app where 10 posts > appear at a time with a "Load More" option given at last whic

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I am trying to do it using Django. I used Django Rest Framework API Guide-Pagination for reference On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM

Re: Pagination - Not Working

2019-02-18 Thread Aakash Baranwal
I have also used Ajax with that. It's load more button is not working, it is showing the 10 posts which is the limit I set in the beginning, but not going beyond that. On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Are you trying pa

Re: Pagination - Not Working

2019-02-18 Thread Siddharth Tamang
set in the beginning, but not > going beyond that. > > On Tue, Feb 19, 2019 at 11:13 AM Siddharth Tamang < > tamangsiddhart...@gmail.com> wrote: > >> Are you trying pagination using JavaScript or Django? >> >> On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal &g

Re: Pagination - Not Working

2019-02-19 Thread Godson Rapture
Can you upload your code on github let me check where your problem is? On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang wrote: > Are you trying pagination using JavaScript or Django? > > On Mon, Feb 18, 2019 at 11:47 PM Aakash Baranwal > wrote: > >> Hello Everyone, >>

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
lving this issue. I am extremely sorry about this. On Tue, Feb 19, 2019 at 1:38 PM Godson Rapture wrote: > Can you upload your code on github let me check where your problem is? > > On Tue, Feb 19, 2019, 6:43 AM Siddharth Tamang < > tamangsiddhart...@gmail.com> wrote: > &g

Re: Pagination - Not Working

2019-02-19 Thread Siddharth Tamang
Can you try this in your views.py? from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator views.py feedTextAll = feedText.objects.order_by('-feedTexDate') pages = Paginator(feedTextAll,5) pageNum = request.GET.get('page') feedtext = pages.get_page(pageNum) return render(request

Re: Pagination - Not Working

2019-02-19 Thread Godson Rapture
Check out simple is better than complex blog. It should have a topic on pagination to help you On Tue, Feb 19, 2019, 9:20 AM Aakash Baranwal wrote: > Hello, > > Thanks for offering me your help, but the problem is I can't upload it on > internet as I have signed a Non Disclos

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
It did not work. I tried making it using JavaScript like in websites if you might have seen when you press the button then only it shows the content or scrolls down. On Tue, Feb 19, 2019 at 2:01 PM Siddharth Tamang < tamangsiddhart...@gmail.com> wrote: > Can you try this in your views.py? > > fr

Re: Pagination - Not Working

2019-02-19 Thread Aakash Baranwal
Thanks a lot. I worked that out by making the Load More as a clickable button which when pressed will show the contents. On Tue, Feb 19, 2019 at 9:00 PM Godson Rapture wrote: > Check out simple is better than complex blog. It should have a topic on > pagination to help you > > On

Pagination in Admin class

2020-01-11 Thread Bruckner de Villiers
Does anyone have some example code to achieve pagination to display a model with many records in Admin, please? admin.py – class CurrencyAdmin(admin.ModelAdmin):     paginate_by=10     list_display = ('id', 'currency_Code', 'currency_Description')   

How can I implement Ajax pagination without side modules like endless-pagination

2014-10-06 Thread Artie
I need to make ajax pagination in my project and not allowed to use side modules like dajax or endless-pagination. Code in my views.py is following def listing(request): news_list = NewPost.objects.all() paginator = Paginator(news_list, 2) page = request.GET.get('page'

Re: How can I implement Ajax pagination without side modules like endless-pagination

2014-10-06 Thread Collin Anderson
copy/pasting from a recent website I worked on for an example... we actually just had a "load more" button without showing the total number of pages. Not saying you should do it this way, but it's one possible way. def listing(request): new_list = NewPost.objects.all() if request.GET.get(

Pagination of non-Django database

2008-11-26 Thread huw_at1
Hey all, A small part of my framework queries a non-Django db due to it being a legacy db with primary keys already in use. My question is is there a recognised way of applying pagination to non-Django db objects such that I can paginate the sql select query on this database? Many thanks

django-pagination with search form

2009-08-06 Thread Streamweaver
Simple Pagination in Django is great but I'm having some trouble with the best way to design pagination with querysets derived from Search Forms. I'm currently using the Django-Pagination middleware and it works great but there's really pretty bad documentation on it (as with man

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-08-30 Thread tezro
It works. I suppose that it even doesn't retrieve all the tons of > data from the DB, but what if I have 10 + 1 record :) > > What's the right way to use "django-pagination" and the "archive_index > ()" or am I missing something? > > Example co

efficient Pagination of large queryset

2009-03-12 Thread adrian
I have users with 30K rows in the database and have to support various types of queries, some of which require raw SQL. I used a two-step approach to get the query_set, first do a raw SQL query to get a list of the ids of the rows I need, then filter the queryset with it. This isn't terribly f

Question about QuerySet and Pagination

2011-09-29 Thread Felix Wagner
{{ Thin_Client.MAC }} {{ Thin_Client.INVENTAR }} Details {% endfor %} {% else %} No Thin Clients found {% endif %} {% endif

Django - pagination - split articles manually?

2011-10-22 Thread Petey
Is it possible to split articles manually with some sort of a pagination tag in the text? Whole text: Part 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit. {{ split_tag.page1 }} Part 2: Vivamus sit amet odio a turpis congue tincidunt. {{ split_tag.page2 }} etc. -- You received

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-10-18 Thread Mihail Lukin
It works. I suppose that it even doesn't retrieve all the tons of > > data from the DB, but what if I have 10 + 1 record :) > > > What's the right way to use "django-pagination" and the "archive_index > > ()" or am I missing something?

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-10-18 Thread tezro
ent "num_latest" which is 15 by default. > > > Setting it manually to num_latest=10 is way off to correct to > > > me. It works. I suppose that it even doesn't retrieve all the tons of > > > data from the DB, but what if I have 10 + 1 record :)

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-10-18 Thread Михаил Лукин
t; Setting it manually to num_latest=10 is way off to correct to > > > > me. It works. I suppose that it even doesn't retrieve all the tons of > > > > data from the DB, but what if I have 10 + 1 record :) > > > > > > What's the

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-10-19 Thread tezro
tezro wrote: > > > > > > The question is that > > "django.views.generic.date_based.archive_index()" > > > > > takes an optional argument "num_latest" which is 15 by default. > > > > > Setting it manually to num_l

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-10-19 Thread Михаил Лукин
> The question is that > > > "django.views.generic.date_based.archive_index()" > > > > > > takes an optional argument "num_latest" which is 15 by default. > > > > > > Setting it manually to num_latest=10 is way off to >

Re: "django-pagination" and generic.views.date_based.archive_index()

2009-10-21 Thread tezro
gt; > On Aug 30, 2:47 pm, tezro wrote: > > > > > > > Anyone? > > > > > > > On Aug 14, 8:29 am, tezro wrote: > > > > > > > > The question is that > > > > "django.views.generic.date_based.

Re: question about django-pagination

2009-12-18 Thread Lakshman Prasad
> would I still be able to paginate over the entire list of 1 objects? Or my list would be shortened to 5 objects? Its the latter. Your query set will loop only for the size of it's length. On Sat, Dec 19, 2009 at 12:03 PM, Continuation wrote: > In the django-pagination,

Re: question about django-pagination

2009-12-19 Thread Rodrigo Cea
You can paginate whatever you want. From the docs: "Note that you can give Paginator a list/tuple, a Django QuerySet, or any other object with a count() or __len__() method. " On Dec 19, 3:33 am, Continuation wrote: > In the django-pagination, it uses the example: > {% autopagi

One to many django pagination

2010-06-21 Thread Jx
Hi, i recently encountered a problem due to inefficient performance of django pagination. After researching, i realized that there is a need to use django database queries when dealing with django-pagination as "LIMIT" will automatically be added. This is useful especially when dealing

Re: Pagination with bound form

2010-10-15 Thread Devin M
So you have a page number thats getting passed from a url, right? and then you want to display records based on that page number? you could do something like this: urls.py (r'^page/(?P\d+)/$', 'data.views.pagelisting'), views.py def pagelisting(request, page_number): records = range(page_numbe

Re: Pagination with bound form

2010-10-15 Thread David
Hi Devin Thank you for your reply. I'm not sure if I've explained myself properly, or if I'm misinterpreting your reply. What I am aiming for is a form containing a single record. At the bottom of this form will be the pagination tools << Prev 1 2 3 etc. which will enable

Re: Pagination with bound form

2010-10-15 Thread Devin M
; Thank you for your reply. > > I'm not sure if I've explained myself properly, or if I'm > misinterpreting your reply. What I am aiming for is a form containing > a single record. At the bottom of this form will be the pagination > tools << Prev 1 2 3 etc. which will

Re: Pagination with bound form

2010-10-15 Thread Devin M
avid wrote: > > > Hi Devin > > > Thank you for your reply. > > > I'm not sure if I've explained myself properly, or if I'm > > misinterpreting your reply. What I am aiming for is a form containing > > a single record. At the bottom of this

Django pagination is repeating results

2011-02-18 Thread diogobaeder
Hi, I have this weird pagination bug in Django: using object_list as a return of a view, but passing a "paginate_by" argument to it, it's repeating some of the results; Otherwise, if I remove the argument or set as "paginate_by=None", the results are correct. If using pa

Re: Doubt regarding endless pagination

2012-04-02 Thread Blackpearl
You can edit page_link.html for displaying like: <> "{{ page.label|safe }} | " -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to dj

Re: Doubt regarding endless pagination

2012-04-02 Thread Swaroop Shankar V
Thank You, i changed show_pages.html instead of page_link.html. It worked fine. Anyway thanks for pointing out where to change. Regards, Swaroop Shankar V On Mon, Apr 2, 2012 at 5:10 PM, Blackpearl wrote: > You can edit page_link.html for displaying like: > <> > > "{{ page.label|safe }} | " >

Re: Django Pagination Not Working!

2012-05-08 Thread Tom Evans
On Sun, May 6, 2012 at 10:56 PM, coded kid wrote: > I'm trying to paginate a page in order to display five statuses per > page. After inputting these codes, it fails to paginate. Below are the > codes for pagination and updating of status in my django app. > > > Views

[ANN] Django Endless Pagination v2.0

2013-02-28 Thread Francesco Banconi
Hi all, I just released Endless Pagination v2.0: Django pagination tools supporting Ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination. New features include Python 3 support, Javascript improvements, code clean up and many other bug fixes and changes. If you are

Pagination with file upload (MultiValueDictKeyError)

2013-04-15 Thread chambers24889
m paginating when it should be a "request.GET". The issue here is I believe I need to have this as a POST because I'm getting data from an uploaded file. The second cause I do not understand, but it's at this link: https://django-pagination.googlecode.com/svn/trunk/docs/us

Admin pagination not digg-style

2013-04-22 Thread Stanislav Mihaylov
I can't seem to find an easy and simple way to make the Django admin paginator display all page numbers rather then displaying them in 'Digg' style in the footer navigation. I read plenty of articles on how to make it Digg style, but it seems in the new Django versions it is Digg style by defau

Using django pagination or slicing

2016-10-30 Thread ADEWALE ADISA
the 3 ways am aiming to achieve this: 1. Using django pagination feature. 2. Everytime records need to be appended to the browser , an ajax call is made to the view, then the queryset is slice using appropriate lower and upper band. Then the returned record is appended to the browser. 3. Fetch

muliple pagination on same page

2014-08-25 Thread hardik sottany
hello friend i want to use pagination for today appointment tommorows appoint and past appointment can any1 help me out in quite greater need -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

problem with django daj pagination

2014-09-24 Thread Артём Мутерко
I'm trying to set up dajax pagination in py app. The problem is when I add import dajaxwebsite.examples.views to views.py My css stop working. Maybe I should use another ajax pagination plugin? like endless-pagination -- You received this message because you are subscribed to the Google G

Re: Pagination causing mySQL error

2007-05-04 Thread Pashka R.
t up the query set in the template using > "slice". For example: > > {% for object in object_list|slice:"1:6" %}area one {% endfor %} > {% for object in object_list|slice:"6:9" %}area two {% endfor %} > etc > > My problem is that this is not working

Extending generic views and pagination

2007-05-10 Thread ilDave
Hi all! I'm a new python and django user, and this is my first post in this group! I'm writing a small app that shows a list of objects after a successfull login. I made a custom view to handle authentication and at the same time to keep the semplicity of the generic view list_detail.obkect_list:

getting pagination tag to work

2007-08-09 Thread james_027
hi, I am trying to do this http://code.djangoproject.com/wiki/PaginatorTag I have two apps in my projects which are main and manning. I put the pagination tag code in the main/templatetags/extra_tags.py file. And I am trying to use the tag from a template in manning/templates/ results.htm. But

Re: pagination for search result ...

2007-08-09 Thread Kai Kuehne
Hi James, On 8/9/07, james_027 <[EMAIL PROTECTED]> wrote: > > hi, > > I am trying to put a page list for a search result. So far here's what > I've try by using the django.views.generic.list_detail.object_list and > the pagination tag (http://code.djangoproject.

Re: pagination for search result ...

2007-08-09 Thread james_027
Hi Kai, > > Do you mean that the filter works on the first page but > is lost when you go to another page? If yes: > I save my filter in a session and filter on each page using > that filter values (the values that were given to the input fields > of the filter form). I don't know whether this is

Re: pagination for search result ...

2007-08-09 Thread Kai Kuehne
Hi, On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > Hi Kai, > Could you share you code how your save your filter in session? Yes: def list_filter(request): """Update session filter""" # request['filter'] is a hidden field. frankly, I don't know if this is really needed. # I added

Re: pagination for search result ...

2007-08-09 Thread Kai Kuehne
On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > hi, > > > def list_filter(request): > > """Update session filter""" > > # request['filter'] is a hidden field. frankly, I don't know if > > this is really needed. > > # I added it in case I add another form to the template > > if

Re: pagination for search result ...

2007-08-09 Thread james_027
hi, > def list_filter(request): > """Update session filter""" > # request['filter'] is a hidden field. frankly, I don't know if > this is really needed. > # I added it in case I add another form to the template > if request.method == 'POST' and request['filter'] == '1': >

Re: pagination for search result ...

2007-08-09 Thread james_027
hi, On Aug 10, 11:25 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > > > > > > hi, > > > > def list_filter(request): > > > """Update session filter""" > > > # request['filter'] is a hidden field. frankly, I don't know if > > > this is rea

Re: pagination for search result ...

2007-08-10 Thread LaundroMat
request["filter"] is a session variable, that's why it works :) On Aug 10, 5:25 am, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > On 8/10/07, james_027 <[EMAIL PROTECTED]> wrote: > > > > > > > hi, > > > > def list_filter(request): > > > """Update session filter""" > > > # request['filter'] is

Re: low-level cache & pagination

2007-11-30 Thread Chris G
s ran and takes about 50 seconds to > completely and is pretty resource intensive. So what I have done is > cached it into a key via cache.set('my_query_results', results, 300) > > The problem is that I also use pagination which results from this > query. So when navigating to ?p

Re: low-level cache & pagination

2007-12-01 Thread Doug B
he key, so different users aren't sharing the same cached object (for things like search caching anyway). Thats not using the built-in pagination though, so you might have to build your own doing it just with ids. --~--~-~--~~~---~--~~ You received this message

Re: Pagination with Custom Views

2006-11-16 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Hey, > > I was just wondering if someone could help me out. I want to paginate > some views, but they are not generic. This is one of the views I want > to paginate: > > def category_list(request): > categories = Category.objects.order_by('name') > > retur

<    1   2   3   4   >