django-site-broadcasts 0.0.1
A small Django app that displays temporary, short broadcasts across a site.
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)
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-site-broadcasts-0.0.1.tar.gz (md5) | Source | 2011-12-19 | 3KB | 184 | |
- Author: Ben Lopatin
- Home Page: https://github.com/bennylope/django-site-broadcasts/
- License: BSD License
- Platform: OS Independent
- Categories
- Package Index Owner: bennylope
- DOAP record: django-site-broadcasts-0.0.1.xml
