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
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
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
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
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
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
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
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
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
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
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
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 -
> 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
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
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
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
> 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
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
> 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
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
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
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
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
&
>
>
> 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
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
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:
>
>>
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
{% 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
>>
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
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
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
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
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
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')
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'
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(
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
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
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
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
{{ Thin_Client.MAC }}
{{ Thin_Client.INVENTAR }}
Details
{% endfor %}
{% else %}
No Thin Clients found
{% endif %}
{% endif
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
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?
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 :)
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
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
> 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
>
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.
> 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,
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
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
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
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
; 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
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
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
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
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 }} | "
>
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
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
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
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
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
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
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
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
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:
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
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.
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
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
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
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':
>
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
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
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
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
[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
101 - 200 of 397 matches
Mail list logo