Does django's built-in comments component support pagination?

23 views
Skip to first unread message

Scarl

unread,
Sep 23, 2012, 2:12:10 PM9/23/12
to django...@googlegroups.com
I wonder is it possible to display 10 comments on one page? If it can, how to do it? Using the  django.core.paginator?
please help! thx!

Scarl

unread,
Sep 23, 2012, 3:49:38 PM9/23/12
to django...@googlegroups.com
Should I rewrite django.contrib.comments.models? Or I just need to rewrite my_django_project.myapp.models?

在 2012年9月23日星期日UTC+8下午10时38分41秒,Pablo Sanfilippo写道:
https://docs.djangoproject.com/en/dev/topics/pagination/?from=olddocs#using-paginator-in-a-view This is a perfect example. You have to replace de model by the model of your comments.

Pablo Sanfilippo

unread,
Sep 23, 2012, 5:28:45 PM9/23/12
to django...@googlegroups.com
Sorry, i thought that views handle comments. I see now that comments are handled by the framework itself.

Scarl

unread,
Sep 24, 2012, 2:40:27 AM9/24/12
to django...@googlegroups.com
Thanks for the answer! 
I have found something on django's official website.
It seems that the comments component  are not paginateable with django's own paginator...

在 2012年9月24日星期一UTC+8上午1时28分45秒,Pablo Sanfilippo写道:
Reply all
Reply to author
Forward
0 new messages