https://github.com/paulik123/django-htmx-live-trigger
This example assumes you have Redis installed and running on your local machine.
-
Clone the project
-
Create and activate env
pip install -r requirements.txt
python3 manage.py migrate
To see the example open two terminals.
Run the server in the first one using manage.py runserver
In the second one run:
python3 manage.py create_notification <some_notification>
The notifications page should update automatically