Reusable application for Django introducing URL-dependent static and dynamic data blocks
Project description
http://github.com/idlesign/django-siteblocks
What’s that
django-siteblocks is a reusable application for Django to build blocks of static or dynamic data that could be used in templates.
It allows you to describe data that doesn’t clearly belong to any application in your project in terms of static or dynamic blocks, that could be rendered in certain places on site pages. These blocks are addressed in templates by their aliases.
Two siteblock types are supported:
Static. Those are defined using Django Admin contrib and are linked to certain URLs.
This allows different siteblock contents on different URLs.
Dynamic. Those are ordinary Python functions registered as siteblocks returning contents.
This allows complex logic to build siteblock contents.
If one and the same siteblock has more than one content associated with it, rendered content will be chosen randomly.
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_siteblocks-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec8a257d26a85589c57b4cf4e179532303a94056c3ab5f1ee8a5db801a042c8 |
|
MD5 | 4e0b0e04256cca936561b632e1536cc6 |
|
BLAKE2b-256 | 15267e9904954f16a0d9e5372a18cdaab87f2f50b110e5269b18ba8a612a23c6 |