Big Red Button
For Django
django-bigredbutton provides a big red "End All Other Sessions" button in a list of a user's current sessions.
Rendered with a light theme:
Rendered with a dark theme:
It can work with multiple session backends, and includes built-in templates for both django-qsessions and django-user-sessions, and dynamically switches between them depending on which one is identified in settings.SESSION_ENGINE.
Compatibility
- Python: >= 3.11
- Django: >= 4.0
Installation
-
Install the latest version:
pip install django-bigredbutton
poetry add django-bigredbutton
uv add django-bigredbutton
-
Add a session backend, like django-qsessions or django-user-sessions. You can use the optional packaging shortcuts:
pip install 'django-bigredbutton[qsessions]'
poetry add 'django-bigredbutton[qsessions]'
uv add 'django-bigredbutton[qsessions]'
pip install 'django-bigredbutton[user-sessions]'
poetry add 'django-bigredbutton[user-sessions]'
uv add 'django-bigredbutton[user-sessions]'
But there may be additional steps required for each session backend. Refer to the documentation for your session backend package for their installation instructions.
-
Add
bigredbuttontoINSTALLED_APPSin your project'ssettings.py, and optionally setBIGREDBUTTON_DELETE_SUCCESS_URL_NAMEto the URL name of your choice (default:list_sessions). -
Register
bigredbuttonin your projects root URLConf:urlpatterns = [ ... path("account/sessions/", include("bigredbutton.urls")), ... ]
Usage
Run Django's development server and navigate to the configured root for
bigredbutton. The URL in these instructions will be
http://localhost:8000/account/sessions/.
You will see a list of all of your current sessions. If you have more than one session (eg: you are signed in on more than one browser or device), you will see a big red "End All Other Sessions" button. That button will sign you out of all of your other sessions.
TODO
I have intentionally kept this app very small to minimize the maintenance burden. But contributions are very welcome!
License
MIT
Metadata
Release files for django-bigredbutton 0.3.4
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_bigredbutton-0.3.4.tar.gz | 5.7 kB | With provenance | Details for django_bigredbutton-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_bigredbutton-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for django_bigredbutton-0.3.4-py3-none-any.whl |
Total release size: 13.7 kB
Security for django-bigredbutton 0.3.4
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.
Full provenance
All 2 files in this release have been 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.