Skip to content

A small Django app to easily broadcast an announcement across a website.

License

Notifications You must be signed in to change notification settings

fairview/django-site-broadcasts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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)

About

A small Django app to easily broadcast an announcement across a website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%