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!

A small Django app that displays temporary, short broadcasts across a site.

Project Description

The site broadcast application allows users to define short messages and announcements that should be displayed across a site.

Each broadcast message consists of a short message, an optional start time, and a completion time, when the should be displayed across a site.

Installation

Use pip:

pip install django-site-broadcasts

Or clone the repository and use the setup.py file to install the application.

python setup.py install

Then add broadcasts to your INSTALLED_APPS and broadcasts.context_processors.broadcast_message to TEMPLATE_CONTEXT_PROCESSORS.

Usage

If you’ve added the context processor to your list of context processors, you can simply refer to the current message using the context variable:

{{ broadcast_message }}

The message itself should be displayed with:

{{ broadcast_message.message }}

TO-DO

  • Handle time zones (Django project timezone may differ from server timezone)
  • Use caching (if available)

History

0.1.1

  • Fix an installation bug

0.1.0

  • Django 1.7+ compatibility (moved South migrations module to south_migrations and added native Django migrations module - thanks to @smajda for that)

0.0.1

  • First release
Release History

Release History

This version
History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

History Node

0.0.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_site_broadcasts-0.2.0-py2.py3-none-any.whl (6.8 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Apr 6, 2017
django-site-broadcasts-0.2.0.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source Apr 6, 2017

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