Skip to main content

entirius-django-contentdb

A Django module for page content of Entirius, the open-source modular ecommerce platform: structured JSON pages with a draft/publish workflow. It serves routes, images, channel-scoped content and blog authors over a REST API for the storefront and the CMS.

PyPI Python License: MPL-2.0

What it does

  • Stores page content as structured JSON (sections and tiles) with a draft/publish lifecycle.
  • Maps URL routes to published content and scopes content per sales channel and language.
  • Uploads images with content-addressed deduplication, resizing and thumbnails.
  • Manages blog authors and co-authors on drafts.
  • Exposes a read-only public API for storefronts and an admin API for the CMS.

Installation

uv add entirius-django-contentdb
pip install entirius-django-contentdb
INSTALLED_APPS = [
    ...
    "django_regional",
    "django_utils",
    "django_pim",
    "django_contentdb",
]

# urls.py
urlpatterns = [
    path("", include("django_contentdb.urls")),
]

Optional settings: CONTENTDB_THUMBNAIL_QUALITY, CONTENTDB_IMAGE_MAX_WIDTH, API_ADMIN_BASE_URL, API_PUBLIC_BASE_URL; reference with defaults in https://github.com/entirius/entirius-django-contentdb/blob/develop/AGENTS.md (section Settings).

Quick start

from django_contentdb.services.navigation_service import get_published_navigation

navigation = get_published_navigation(
    content_type_slug="header",
    language_iso2="en",
    channel_idx="default",
)

Requirements

  • Python 3.11 or newer, Django 4.0 or newer.
  • PostgreSQL (published-content queries use DISTINCT ON).
  • Entirius packages pulled in: entirius-django-pim, entirius-django-regional, entirius-django-utils, entirius-py-idx-normalizator, entirius-py-image-transformations.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos), next to the product and regional modules.

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest + pytest-django, needs PostgreSQL via DATABASE_URL)

Development and agent instructions: https://github.com/entirius/entirius-django-contentdb/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-contentdb/blob/develop/LICENSE.

Metadata

Release files for entirius-django-contentdb 5.3.0

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

Source distribution (sdist)

Source distribution for entirius-django-contentdb 5.3.0
File Size Uploaded Provenance Actions
entirius_django_contentdb-5.3.0.tar.gz 243.5 kB Without provenance Details for entirius_django_contentdb-5.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-contentdb 5.3.0
File Interpreter ABI Platform Actions
entirius_django_contentdb-5.3.0-py3-none-any.whl Python 3 none any Details for entirius_django_contentdb-5.3.0-py3-none-any.whl

Total release size: 381.4 kB

Release files / entirius_django_contentdb-5.3.0.tar.gz

Download URL entirius_django_contentdb-5.3.0.tar.gz
Size 243.5 kB
Tags Source
SHA-256 checksum
How to use checksums
efe0bcc0cd365dab00e56de4b89e0f62ba60a3d110ba4fdaa03360f2620eceda
BLAKE2b-256 checksum
How to use checksums
3c3d9bca41a0d46d4496804d1ca61738faf4dfad35e26e74feb6cdf9c315da29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_django_contentdb-5.3.0-py3-none-any.whl

Download URL entirius_django_contentdb-5.3.0-py3-none-any.whl
Size 137.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5cd18a117b24163167485023e9d6fc8afbc21cc088d4b5510777a98d7db6da1
BLAKE2b-256 checksum
How to use checksums
c4b66adf6bff1bf44d2c56e31aea9d9182f93c97438eafabdb661624e12763a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for entirius-django-contentdb 5.3.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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