This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Rob Hudson (author)
Mon Feb 09 16:34:50 -0800 2009
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
AUTHORS | ||
| |
LICENSE | ||
| |
README.rst | ||
| |
flatcontent/ |
README.rst
Django FlatContent
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 flatpages directory to your Python path.
- Add flatpages 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.








