Skip to content

gotlium/django-chunks2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-Chunks2

Installation:

  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>

About

Keyed blocks of content for use in your Django templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 88.6%
  • JavaScript 9.0%
  • CSS 2.4%