Skip to main content

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

  1. Add the flatpages directory to your Python path.

  2. Add flatpages to your INSTALLED_APPS.

  3. 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

django-flatcontent-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file django-flatcontent-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-flatcontent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 105c66eb782d1d8b64eceae7b1441482fa969b74dc95a5170560da404d4abc1b
MD5 a281afc1e9ecf8cf5e69bd2d5b9f9040
BLAKE2b-256 eb81886c871cb2f44b10059445c78daa9e191b909e5061e8fd0768e3a1798a9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page