Skip to main content

Simple (rich) content blocks for use on front end templates. With admin tool.

Project description


Very simple CMS-like content blocks for use in a django project.


1. Admin interface for creating/managing content blocks (including a rich text editor)

2. Template tag for retrieving/displaying content block in a django project template. Django cache is leveraged, when possible, in loading content block.

Inspiration and more full featured version: django-tinycontent_

Run: ``pip install django-richcontentblocks``

Quick start
1. Follow configuration instructions for ckeditor_ (skip this step if ckeditor is already configured).

2. Run migrations:: migrate

3. Add "richcontent" to your INSTALLED_APPS setting like this::


You should now have an admin tool with the ability to create rich content blocks.

Usage in template
An example of loading a rich content block, with a key value of ``my-block`` in a template::

{% load rich_content_block_tags %}
the content block will be in next div
{% rich_content_block 'my-block' %}

The first time a content block loads, it will be placed in cache. Subsequent loads of the content block will use the cached item.

If an invalid content block key is used to when attempting to load a content object, an error message is displayed.

.. _ckeditor:
.. _django-tinycontent:

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-richcontentblocks-0.4.4.tar.gz (4.3 kB view hashes)

Uploaded Source

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