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)
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
Metadata
Release files for django-site-broadcasts 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-site-broadcasts-0.2.0.tar.gz | 4.4 kB | Without provenance | Details for django-site-broadcasts-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_site_broadcasts-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_site_broadcasts-0.2.0-py2.py3-none-any.whl |
Total release size: 11.2 kB
Release files / django-site-broadcasts-0.2.0.tar.gz
| Download URL | django-site-broadcasts-0.2.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97e38eeb6de74bee087f776e08bd8e0280d6e3c34979e78d250e9f45c85c4138
|
|
BLAKE2b-256 checksum How to use checksums |
e02471e34637abbf1a1138666868e7b3419c0de8d29cdb4e57a4d4c6cf90f0b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_site_broadcasts-0.2.0-py2.py3-none-any.whl
| Download URL | django_site_broadcasts-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ad1e0010594dbfa30e010c2dd9bfddc4211dc2c15656c21dbd8c9a92cbb1bb78
|
|
BLAKE2b-256 checksum How to use checksums |
4b5cca2c2fbfe87fec64250dfac53b28276c00d80e1d22ee85033b17d60095fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-site-broadcasts 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.