Skip to main content

PyPI Package Version MIT License PyPI Status

Python Versions Supported Django Versions Supported

Test Coverage Read the Docs

Code Style Black PyPI Downloads GitHub Repo Stars

Django Content Blocks

Django Content Blocks is a reusable Django app that allows users to create and manage custom content blocks for their website. It aims to provide content management and page building features from within the admin site without being a full CMS app or reinventing the admin site.

The content block editor is a simple page builder that integrates seamlessly into the admin site, it provides an easy-to-use interface for creating content blocks.

The content block editor in the Django admin site.

The content block editor in the Django admin site.

Content blocks can be related to any other object. This allows you to provide rich, dynamic, editable content for your existing models such as pages, products, projects or whatever models you have.

The templates used to render content blocks are made in the same way as any other template in your project, giving you access to the full power of your chosen template engine. You define the fields that are available to edit your content blocks in the content block editor. This means you can build a content block template once and reuse it over and over again.

Content blocks can contain any type of content, including text, images, videos, and more, and can be arranged in any order. Additionally, Django Content Blocks includes support for drafts and previews, allowing users to see how their changes will look before publishing them.

Installation instructions and detailed documentation can be found on ReadTheDocs.

Development Status & Roadmap

Django content blocks is already in use in a number of production websites however it is still considered to be in beta as active development continues.

Major development plans/ideas include:

  • Content block editor HTML, CSS and JS rework.
    • This all needs updating to use modern HTML and CSS (flex, grid etc) and vanilla JS.

    • Currently using jQuery which isn’t the end of the world as it comes with django.contrib.admin so not an extra dependency.

  • Option for vertical layout for nested forms in the content block editor
    • Sometimes nested blocks can represent columns within a content block. It would be nice to give the option to have these shown side by side in the content block editor.

  • django-content-blocks 2.0
    • This will be a major rewrite which will move the representation of content blocks out of the database and into a JSONField. This will greatly improve performance as the whole representation of an object’s content blocks can be returned at once and any subsequent queries required can be made in a prefetch fashion.

    • The ContentBlockField will become pluggable allowing developers to add/remove available fields from within their project.

  • Django content blocks suite of apps providing additional functionality and basic apps powered by content blocks:
    • CMS

    • Blog

    • Contact forms

Dependencies (and Thank You)

Thank You

Contributing

Contributions, advice and guidance are welcome. Please make contact before writing any code!

Metadata

Release files for django-content-blocks 1.5.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-content-blocks 1.5.4
File Size Uploaded Provenance
django-content-blocks-1.5.4.tar.gz 492.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-content-blocks 1.5.4
File Interpreter ABI Platform
django_content_blocks-1.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / django-content-blocks-1.5.4.tar.gz

Download URL django-content-blocks-1.5.4.tar.gz
Size 492.6 kB
Tags Source
SHA-256 checksum
How to use checksums
10db7174b38c53e42fc7f2c7a29a0fe56214452b661e2ef5afc9bed61d4ff33f
BLAKE2b-256 checksum
How to use checksums
a6e605c49256a6cbb0cdbc1d886cc1909c398caca6230095455ba04811e3f3bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / django_content_blocks-1.5.4-py3-none-any.whl

Download URL django_content_blocks-1.5.4-py3-none-any.whl
Size 512.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a789f9c70e0dac2d6f12b9b9a51b08b5b50ca14b098bd547feb7b980d1a7c394
BLAKE2b-256 checksum
How to use checksums
51fd84a4a7d0d388c3a048673b7763d7c410669d6023bd67e7c300dc9f3fa967
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for django-content-blocks 1.5.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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