{"id":23873372,"url":"https://github.com/abe-101/django-htmx-messages","last_synced_at":"2025-04-14T16:52:51.692Z","repository":{"id":270751046,"uuid":"911350157","full_name":"abe-101/django-htmx-messages","owner":"abe-101","description":"Django+HTMX integration with the messages framework","archived":false,"fork":false,"pushed_at":"2025-01-03T04:55:17.000Z","size":897,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T10:47:53.299Z","etag":null,"topics":["bootstrap","django","django-messages","htmx"],"latest_commit_sha":null,"homepage":"https://django-htmx-messages.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abe-101.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["abe-101"]}},"created_at":"2025-01-02T20:08:52.000Z","updated_at":"2025-04-09T17:17:23.000Z","dependencies_parsed_at":"2025-01-03T21:15:31.519Z","dependency_job_id":null,"html_url":"https://github.com/abe-101/django-htmx-messages","commit_stats":null,"previous_names":["abe-101/django-htmx-messages"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fdjango-htmx-messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fdjango-htmx-messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fdjango-htmx-messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abe-101%2Fdjango-htmx-messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abe-101","download_url":"https://codeload.github.com/abe-101/django-htmx-messages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557847,"owners_count":21124165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","django","django-messages","htmx"],"created_at":"2025-01-03T16:54:50.722Z","updated_at":"2025-04-14T16:52:51.656Z","avatar_url":"https://github.com/abe-101.png","language":"Python","funding_links":["https://github.com/sponsors/abe-101"],"categories":[],"sub_categories":[],"readme":"# Django Htmx Messages\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/abe-101/django-htmx-messages/actions/workflows/ci.yml?query=branch%3Amain\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/abe-101/django-htmx-messages/ci.yml?branch=main\u0026label=CI\u0026logo=github\u0026style=flat-square\" alt=\"CI Status\" \u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://django-htmx-messages.readthedocs.io\"\u003e\n    \u003cimg src=\"https://img.shields.io/readthedocs/django-htmx-messages.svg?logo=read-the-docs\u0026logoColor=fff\u0026style=flat-square\" alt=\"Documentation Status\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/abe-101/django-htmx-messages\"\u003e\n    \u003cimg src=\"https://img.shields.io/codecov/c/github/abe-101/django-htmx-messages.svg?logo=codecov\u0026logoColor=fff\u0026style=flat-square\" alt=\"Test coverage percentage\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/astral-sh/uv\"\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json\" alt=\"uv\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/astral-sh/ruff\"\u003e\n    \u003cimg src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\" alt=\"Ruff\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/pre-commit/pre-commit\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\u0026style=flat-square\" alt=\"pre-commit\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.org/project/django-htmx-messages/\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/django-htmx-messages.svg?logo=python\u0026logoColor=fff\u0026style=flat-square\" alt=\"PyPI Version\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/pyversions/django-htmx-messages.svg?style=flat-square\u0026logo=python\u0026amp;logoColor=fff\" alt=\"Supported Python versions\"\u003e\n  \u003cimg src=\"https://img.shields.io/pypi/l/django-htmx-messages.svg?style=flat-square\" alt=\"License\"\u003e\n\u003c/p\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://django-htmx-messages.readthedocs.io\" target=\"_blank\"\u003ehttps://django-htmx-messages.readthedocs.io \u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/abe-101/django-htmx-messages\" target=\"_blank\"\u003ehttps://github.com/abe-101/django-htmx-messages \u003c/a\u003e\n\n---\n\nDjango+HTMX integration with the messages framework\n\nA 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.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/bblanchon/django-htmx-messages-framework/main/django-htmx-messages-framework.gif\" alt=\"Demo\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nInstall this via pip (or your favourite package manager):\n\n`pip install django-htmx-messages`\n\nAdd the app to your `INSTALLED_APPS`:\n\n````python\n```python\nINSTALLED_APPS = [\n    \"django_htmx_messages\",\n]\n\nMIDDLEWARE = [\n    \"django_htmx_messages.middleware.HtmxMessageMiddleware\",\n]\n````\n\nAdd to your base template:\n\n```html\n\u003chead\u003e\n  \u003cscript src=\"{% static 'htmx.min.js' %}\" defer\u003e\u003c/script\u003e\n  \u003cscript src=\"{% static 'toasts.js' %}\" defer\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n  {# Your content here #} {% include 'toasts.html' %}\n\u003c/body\u003e\n```\n\n## Try the Demo\n\n```bash\ngit clone https://github.com/abe-101/django-htmx-messages.git\ncd django-htmx-messages\nuv sync\nuv run manage.py runserver\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.habet.dev/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/82916197?v=4?s=80\" width=\"80px;\" alt=\"Abe Hanoka\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAbe Hanoka\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/abe-101/django-htmx-messages/commits?author=abe-101\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-abe-101\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/abe-101/django-htmx-messages/commits?author=abe-101\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n## Credits\n\n- Original implementation by [Benoit Blanchon](https://github.com/bblanchon/django-htmx-messages-framework/blob/oob)\n  This package was created with\n  [Copier](https://copier.readthedocs.io/) and the\n  [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)\n  project template.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabe-101%2Fdjango-htmx-messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabe-101%2Fdjango-htmx-messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabe-101%2Fdjango-htmx-messages/lists"}