Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bennylope/django-site-broadcasts
A small Django app to easily broadcast an announcement across a website.
https://github.com/bennylope/django-site-broadcasts
broadcast-messages django python
Last synced: 2 months ago
JSON representation
A small Django app to easily broadcast an announcement across a website.
- Host: GitHub
- URL: https://github.com/bennylope/django-site-broadcasts
- Owner: bennylope
- License: mit
- Created: 2011-12-19T21:38:44.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-12-11T21:51:59.000Z (about 4 years ago)
- Last Synced: 2024-11-01T02:22:27.397Z (2 months ago)
- Topics: broadcast-messages, django, python
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 12
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- License: LICENSE
Awesome Lists containing this project
README
======================
django-site-broadcasts
======================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)