Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_siteblocks-0.5.2-py2.py3-none-any.whl (23.7 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 18, 2016
django-siteblocks-0.5.2.tar.gz (21.2 kB) Copy SHA256 Checksum SHA256 Source Dec 18, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting