Skip to main content

Django template filter for splitting a list into columns.

Project description

https://badge.fury.io/py/django-columns.png https://travis-ci.org/audreyr/django-columns.png?branch=master https://coveralls.io/repos/audreyr/django-columns/badge.png?branch=master

Django template filter for splitting a list into columns.

Documentation

The full documentation is at https://django-columns.readthedocs.org.

Quickstart

  1. Install the package. At the command line:

    $ pip install django-columns
    
  2. Add columns to INSTALLED_APPS.

  3. Split a list into 2 lists, to fill 2 columns:

    {% load columns %}
    
    <div class="row">
        {% for col in mylist|columns:3 %}
            <div class="col-md-4">
                {% for item in col %}
                    <div class="item">{{ item }}</div>
                {% endfor %}
            </div><!-- /col-md-4 -->
        {% endfor %}
    </div><!-- /row -->
    

History

0.1.0 (2014-05-12)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-columns, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-columns-0.1.0.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page