Django template tag basic question
Posted
by ninja123
on Stack Overflow
See other posts from Stack Overflow
or by ninja123
Published on 2010-03-26T16:00:38Z
Indexed on
2010/03/26
16:03 UTC
Read the original article
Hit count: 217
It looks like this template tag works like a charm for most people:
http://blog.localkinegrinds.com/2007/09/06/digg-style-pagination-in-django/
For some reason I get this error: Caught an exception while rendering: 'is_paginated'
I use this template tag in my template like so:
{% load digg_paginator %} {% digg_paginator %}
Where digg_paginator.py is in my app/templatetags folder and the included template context digg_paginator.html is in my app/templates folder. The queryset that needs pagination is called 'destinations'. If i just specify {% digg_paginator %}, how does it know what variable to paginate?? I feel I am missing something important here or just plain stupid :P
Someone please help, or explain to me how this should be done. Thanks
© Stack Overflow or respective owner