{ "info": { "author": "Clint Ecker", "author_email": "me@clintecker.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "Django chunks documentation\n===========================\n\nPreface\n=======\n\nThink of it as flatpages for small bits of reusable content you might want to insert into your templates and manage from the admin interface.\nThis is really nothing more than a model and a template tag.\n\nBy adding `chunks` to your installed apps list in your Django project and performing a `./manage.py syncdb`, you'll be able to add as many \"keyed\" bits of content chunks to your site.\n\nThe idea here is that you can create a chunk of content, name it with a unique key (for example: `home_page_left_bottom`) and then you can call this content from a normal template.\n\nWhy would anyone want this? \n----------------------------\n\nWell it essentially allows someone to define \"chunks\" (I had wanted to call it blocks, but that would be very confusing for obvious reasons) of content in your template that can be directly edited from the awesome Django admin interface. Throwing a rich text editor control on top of it make it even easier.\n\nInstallation\n============\n\n1. Add ``chunks`` to your ``INSTALLED_APPS``\n2. Run ``manage.py syncdb``\n\nUsage: \n======\n\nIn your template ::\n\n {% load chunks %}\n \n
\n