Django Htmx Messages
Documentation: https://django-htmx-messages.readthedocs.io
Source Code: https://github.com/abe-101/django-htmx-messages
Django+HTMX integration with the messages framework
A PyPI package for Benoit Blanchon's django-htmx-messages-framework (used with permission). It integrates Django's messages framework with HTMX for dynamic toast notifications.
Installation
Install this via pip (or your favourite package manager):
pip install django-htmx-messages
Add the app to your INSTALLED_APPS:
```python
INSTALLED_APPS = [
"django_htmx_messages",
]
MIDDLEWARE = [
"django_htmx_messages.middleware.HtmxMessageMiddleware",
]
Add to your base template:
<head>
<script src="{% static 'htmx.min.js' %}" defer></script>
<script src="{% static 'toasts.js' %}" defer></script>
</head>
<body>
{# Your content here #} {% include 'toasts.html' %}
</body>
Try the Demo
git clone https://github.com/abe-101/django-htmx-messages.git
cd django-htmx-messages
uv sync
uv run manage.py runserver
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Abe Hanoka 💻 🤔 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
- Original implementation by Benoit Blanchon This package was created with Copier and the browniebroke/pypackage-template project template.
Metadata
Release files for django-htmx-messages 0.1.1
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_htmx_messages-0.1.1.tar.gz | 10.4 kB | With provenance | Details for django_htmx_messages-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_htmx_messages-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for django_htmx_messages-0.1.1-py3-none-any.whl |
Total release size: 18.0 kB
Release files / django_htmx_messages-0.1.1.tar.gz
| Download URL | django_htmx_messages-0.1.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3358f79f2a6e173b7571750a511c8f64e419e5b697ea2e41841a834def6cea2c
|
|
BLAKE2b-256 checksum How to use checksums |
cc21d249a5e04a1d4daf04a6dbb3d6834a08d6110455a09044a8f3ffd4dbf4b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 3, 2025.
Transparency logRelease files / django_htmx_messages-0.1.1-py3-none-any.whl
| Download URL | django_htmx_messages-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8c1933821c0a339abe815df30166bc6363903c5007ad9acc945944b4bbcbc70
|
|
BLAKE2b-256 checksum How to use checksums |
1ea289c90949f9f30d614a458998d0fc6cfff81a289bff33c05327f288d25533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 3, 2025.
Transparency logSecurity for django-htmx-messages 0.1.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for django_htmx_messages-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 3, 2025.
Transparency logA 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.