Skip to main content
Help us improve Python packaging – donate today!

Keyed blocks of content for use in your Django templates

Project Description

  1. Install using pip
$ pip install django-chunks2
  1. Add the chunks application to INSTALLED_APPS in your settings file (usually settings.py)
  2. Sync database (./manage.py syncdb or ./manage.py migrate)
  3. Use chunks on your templates
{% load chunks %}

<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <h1>Blah blah blah</h1>
    <div id="sidebar">
        ...
    </div>
    <div id="left">
        {% chunk "home_page_left" %}
    </div>
    <div id="right">
        {% chunk "home_page_right" %}
    </div>
  </body>
</html>

Release history Release notifications

This version
History Node

2.8.3

History Node

2.8.2

History Node

2.8

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_chunks2-2.8.3-py2.py3-none-any.whl (18.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 Nov 27, 2014
django-chunks2-2.8.3.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None Nov 27, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page