Sunday, September 23, 2012

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

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.

On Sunday, September 23, 2012 11:12:10 AM UTC-3, Scarl wrote:
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!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/hK4hzH8fidQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate