Reusable application for Django introducing URL-dependent static and dynamic data blocks
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.
Release history Release notifications
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_siteblocks-1.1.0-py2.py3-none-any.whl (20.9 kB)||File type Wheel||Python version 2.7||Upload date||Hashes View hashes|
|Filename, size django-siteblocks-1.1.0.tar.gz (19.8 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for django_siteblocks-1.1.0-py2.py3-none-any.whl