Hi guys, i would like to paginate my object list, im tring to use django-pagination, but is showing a 404 page no found when i try to navigate.
ulr.py
categoria_info = {
'queryset':Categoria.objects.all(),
}
urlpatterns = patterns('',
url(r'^$',
object_list,
...
I've implemented django-pagination in my app to take care of pagination, and it's all good. The one thing I can't figure out is how to allow users to choose a certain value for the records per page e.g. 15, 30, 45, 60, 100 or all records.
What's the correct way to go about this?
...
I am trying to build a photo gallery with Django.
It is set up by category.
I have paginated the results of a category by n amount of images per page. I want to also use the paginator on the page that shows just the single image and have a prev/next button for the prev/next image in that category.
My thought was to get the current i...
Hello.
Python 2.6.2
django-pagination 1.0.5
Question: How to force pagination work correctly? The problem is that {% paginate %} does not work, but other {% load pagination_tags %} and {% autopaginate object_list 10 %} works!
Error message appeared, when I add {% paginate %} into html page:
TemplateSyntaxError at /logging
Caught an...
I have a template showing a list of events. To prepare list of events I'm using generic views, and set 'paginate_by' parameter. Strangely when I load my page I see :
TemplateSyntaxError at /event/latest/
Caught an exception while rendering: 'int' object is not iterable
in 9th line of pagination.html template :
{% if is_paginated %}
{...
I love the ease of django's pagination system, but is there anyway to tweak it where it's paginating by item id instead of page number? Because I am ordering in descending order, if there is an update on a page while a user is going through the pages, the ordering is off.
For instance, if each page had 3 items
Item #1
Item #2
Item #3
...
My django-sorting results are pathetic. Won't sort the data in the entire Queryset because djangos pagination model slices it.
Any know a way around this?
More details:
http://code.google.com/p/django-pagination/issues/detail?id=37
...