Skip to main content

WARNING: This code is entirely unsupported, 0.9.0 will be the last release of django-tinycontent.

django-tinycontent is a simple Django application for re-usable content blocks, much like django-boxes.

Installation is simple:

pip install django-tinycontent

Add tinycontent to your INSTALLED_APPS.

Usage in templates is simple:

{% load tinycontent_tags %}

{% tinycontent_simple 'content_name' %}

Or, to specify a value if a content block by the given name cannot be found, use:

{% load tinycontent_tags %}

{% tinycontent 'content_name' %}
This will be shown if no matching object is found.
{% endtinycontent %}

The name of the content block can also be a context variable, using both the simple and the complex variants.

Content blocks themselves can be added and edited using Django’s admin interface. If a block with the name given in the template tag cannot be found, either nothing is rendered (if using tinycontent_simple), or the text between tinycontent and endtinycontent is rendered (if using the more complex variant).

To apply custom filters to your content, set TINYCONTENT_FILTER to a dotted path to a callable that takes the raw content and returns the transformed content. You can also set TINYCONTENT_FILTER to be a list of dotted paths to callables, to chain filters together.

django-tinycontent supports all versions of Django from 2.0 to 3.0. Python 3.6, 3.7 and 3.8 are supported.

Release files for django-tinycontent 0.9.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 django-tinycontent 0.9.0
File Size Uploaded
django-tinycontent-0.9.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tinycontent 0.9.0
File Interpreter ABI Platform
django_tinycontent-0.9.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 30.4 kB

Release files / django-tinycontent-0.9.0.tar.gz

Download URL django-tinycontent-0.9.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a0adb93b12e9468ea1a28361278392f101e8db48236fec2af8216a72ecd22786
BLAKE2b-256 checksum
How to use checksums
2817dffcd2ddf5a8822468c174febfb61c6e4db4c0506912ded1dc33f29e48bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Release files / django_tinycontent-0.9.0-py2.py3-none-any.whl

Download URL django_tinycontent-0.9.0-py2.py3-none-any.whl
Size 19.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c2bc52a6fed0384e419eae149c835057bfdb891b007cf31212503b3e3c916d59
BLAKE2b-256 checksum
How to use checksums
0c4048b95691930fb70727dd7e248d7b56ee6a719f542c9cedb2e563d34e59e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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