Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Reusable application for Django introducing URL-dependent static and dynamic data blocks

Project description

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

https://img.shields.io/pypi/v/django-siteblocks.svg https://img.shields.io/pypi/l/django-siteblocks.svg https://img.shields.io/coveralls/idlesign/django-siteblocks/master.svg https://img.shields.io/travis/idlesign/django-siteblocks/master.svg 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_siteblocks-0.6.1-py2.py3-none-any.whl (21.1 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jun 3, 2018
django-siteblocks-0.6.1.tar.gz (20.2 kB) Copy SHA256 hash SHA256 Source None Jun 3, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page