Django FlatContent is intended as a flatpages-like app but for smaller chunks of content that can be edited in the Django admin.
Project description
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.
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
File details
Details for the file django-flatcontent-0.1.1.tar.gz
.
File metadata
- Download URL: django-flatcontent-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a32026c3c70c89514e697b78a5ea2050ed9f73811b17167a26906ccdd2b422d7 |
|
MD5 | 04f515bc2039174172266f8c579395d4 |
|
BLAKE2b-256 | 95138c2be9d35b279d00e9bf10be86f58dfd2c32a5b28b883374ac3c4ace600f |