(installation)= # Installation The package is published on [PyPI](https://pypi.org/project/django-htmx-messages/) and can be installed with `pip` (or any equivalent): ```bash pip install django-htmx-messages ``` Add to your Django settings: ```python INSTALLED_APPS = [ # ... "django_htmx_messages", ] MIDDLEWARE = [ # ... "django_htmx_messages.middleware.HtmxMessageMiddleware", ] ``` Add to your base template: ```html {# Your content here #} {% include 'toasts.html' %} ``` Next, see the {ref}`section about usage ` to see how to use it.