Skip to main content

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>

Project details


Download files

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

Source Distribution

django-chunks2-2.8.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

django_chunks2-2.8.3-py2.py3-none-any.whl (18.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-chunks2-2.8.3.tar.gz.

File metadata

File hashes

Hashes for django-chunks2-2.8.3.tar.gz
Algorithm Hash digest
SHA256 ede283338d091d26b0aa79010ad06cb84dbf4a50825e374be781704756e6001f
MD5 08220591a3244f42d6e822e95c3477e1
BLAKE2b-256 fb61205de1eaf4af4afb4719fc445ece9b2943877ab61c8c4079037959edc0e0

See more details on using hashes here.

File details

Details for the file django_chunks2-2.8.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_chunks2-2.8.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b8eec72d1365daa4c0f84faa519abdfc4ece76bfb03088ee08f8e2fc1349f42
MD5 d19e66a71d326cdae695a718c1857026
BLAKE2b-256 8e38444a1c9dcd1b62306ed65ca6f82e31a12844da9c15bcd6bd64fe080e53ef

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page