Home > Django-Template-pager

Django-Template-pager

Django-Template-pager is a project mainly written in Python, it's free.

Can be used to simplify the creation of forms inside the standard Django templating system

Simple template tag for Django. This can be used to simplify the creation of forms inside templates.

Copy the templatetags folder into the required app in your Django project (location is irrelevant, the modules will be automatically imported on project startup).

Sample template usage (replace number 2 in "tablerow_start:2" and "tablerow_end:2" wit number of desired columns:

{% load pagerchecker %}

{% for field in form %} {{ forloop.counter|tablerow_start:2 }} {{ forloop.counter|tablerow_end:2 }} {% endfor %}
{{ field.label_tag }} {{ field }}