Skip to main content
=====
django-richcontentblocks
=====

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

Features:

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_

Installation
------------
Run: ``pip install django-richcontentblocks``

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

2. Run migrations::

manage.py migrate

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

INSTALLED_APPS = (
...
'richcontentblocks',
)

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 %}
<div>
the content block will be in next div
</div>
<div>
{% rich_content_block 'my-block' %}
</div>

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: https://github.com/django-ckeditor/django-ckeditor
.. _django-tinycontent: https://github.com/dominicrodger/django-tinycontent

Release files for django-richcontentblocks 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-richcontentblocks 0.4.4
File Size Uploaded
django-richcontentblocks-0.4.4.tar.gz 4.3 kB Details

Release files / django-richcontentblocks-0.4.4.tar.gz

Download URL django-richcontentblocks-0.4.4.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d5ef604f73f47d85b93db6b92ad8a6087c51eea7235e7a5a61d5f0e15f82f641
BLAKE2b-256 checksum
How to use checksums
a679de146bccdb8ae11d7fb0f4167b74be3bbc59dc5807febfe9a71ebce1b583
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.4 This release

1 release file

0.4.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page