nicemira wrote: > please friends, > how can I paginate my product with this method: I want to do a newline > after every two products
Doing a newline after every two products is not pagination. Here is an example that adds a horizontal rule after every two products: {% for product in products %} {% if forloop.counter|divisibleby:"2" %} {{ product }} <hr> {% else %} {{ product }} {% endif %} {% endfor %} See the documentation at: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#divisibleby If you mean you want a page for every two products, see the documentation at: http://docs.djangoproject.com/en/dev/topics/pagination/ Please try to be more specific and informative in your questions, it will help you get better answers. - Joe --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---