An open API service indexing awesome lists of open source software.

https://github.com/abe-101/django-htmx-messages

Django+HTMX integration with the messages framework
https://github.com/abe-101/django-htmx-messages

bootstrap django django-messages htmx

Last synced: about 1 year ago
JSON representation

Django+HTMX integration with the messages framework

Awesome Lists containing this project

README

          

# Django Htmx Messages



CI Status


Documentation Status


Test coverage percentage




uv


Ruff


pre-commit




PyPI Version

Supported Python versions
License

---

**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](https://github.com/bblanchon/django-htmx-messages-framework/blob/oob) (used with permission). It integrates Django's messages framework with HTMX for dynamic toast notifications.


Demo

## Installation

Install this via pip (or your favourite package manager):

`pip install django-htmx-messages`

Add the app to your `INSTALLED_APPS`:

````python
```python
INSTALLED_APPS = [
"django_htmx_messages",
]

MIDDLEWARE = [
"django_htmx_messages.middleware.HtmxMessageMiddleware",
]
````

Add to your base template:

```html


{# Your content here #} {% include 'toasts.html' %}

```

## Try the Demo

```bash
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](https://allcontributors.org/docs/en/emoji-key)):



Abe Hanoka
Abe Hanoka

💻 🤔 📖

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

## Credits

- Original implementation by [Benoit Blanchon](https://github.com/bblanchon/django-htmx-messages-framework/blob/oob)
This package was created with
[Copier](https://copier.readthedocs.io/) and the
[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)
project template.