Reusable application for Django to build blocks of static or dynamic data that could be used in templates.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs Dropped support for Python<3.4 and Django<1.7. Dec 9, 2017
siteblocks Release v0.6.0 Dec 16, 2017
.coveragerc Added Travis and Coveralls configs and badges. Dec 28, 2014
.gitignore
.landscape.yaml Code health improved. Mar 14, 2015
.travis.yml QA config updated. Dec 9, 2017
AUTHORS AUTHORS updated May 11, 2016
CHANGELOG
LICENSE
MANIFEST.in Manifest updated. Dec 14, 2016
README.rst Badge updated. Dec 9, 2017
setup.cfg
setup.py Dropped support for Python<3.4 and Django<1.7. Dec 9, 2017
tox.ini Django 2.0 basic compatibility. Dec 9, 2017

README.rst

django-siteblocks

http://github.com/idlesign/django-siteblocks

https://landscape.io/github/idlesign/django-siteblocks/master/landscape.svg?style=flat

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

http://django-siteblocks.readthedocs.org/