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
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 }}
TO-DO
Handle time zones (Django project timezone may differ from server timezone)
Use caching (if available)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-site-broadcasts-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b1017348d1e30bfa73b0582bfad33507c50ae0d7ec4c7d7d8e5b9cc67272101 |
|
MD5 | d8eb383a7d40f8c824af293a2975fd38 |
|
BLAKE2b-256 | f9c1f3828250817fa1df09986e1802df143d56b987bb4e3b5ada93c870c125af |