django-flatcontent 0.1.2
Django FlatContent is intended as a flatpages-like app but for smaller chunks of content that can be edited in the Django admin.
Django FlatContent is intended as a flatpages-like app but for smaller chunks of content that can be edited in the Django admin.
Features
- Simple FlatContent model
- Template tag for pulling FlatContent into templates
- Caching of FlatContent for performance
Installation
- Add the flatcontent directory to your Python path.
- Add flatcontent to your INSTALLED_APPS.
- Run the command manage.py syncdb to install the models.
Usage
Once content is available in the FlatContent model, it can be accessed via the templates using the provided template tags:
{% load flatcontent_tags %}
<div id="footer">
{% flatcontent footer %}
</div>
The above will perform a slug lookup on the text "footer" and return the content associated with that slug.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-flatcontent-0.1.2.tar.gz (md5) | Source | 2009-06-30 | 4KB | 1156 | |
- Author: Oregon Center for Applied Science
- Home Page: http://github.com/orcasgit/django-flatcontent/tree
- Download URL: http://github.com/orcasgit/django-flatcontent/downloads
- License: BSD
- Categories
- Package Index Owner: orcas
- DOAP record: django-flatcontent-0.1.2.xml
