{"repo":"django-commons/django-tailwind-cli","free":true,"listed":false,"github":"https://github.com/django-commons/django-tailwind-cli","clone":"git clone https://github.com/django-commons/django-tailwind-cli.git","description":"Django and Tailwind integration based on the prebuilt Tailwind CSS CLI.","language":"Python","stars":216,"topics":["django","tailwind","tailwindcss","django-application","python","tailwind-css"],"license":"MIT","category":"cli-tools","readme_excerpt":"django-tailwind-cli Tailwind CSS for Django without Node.js. The library downloads the standalone Tailwind CSS CLI and wires it into Django management commands, so there is no npm, no webpack, and no separate build tool to configure. It follows the approach of the Tailwind integration for Phoenix. What it does - Downloads and manages the Tailwind CLI binary for your platform - Rebuilds CSS on change, running under Django's own auto-reloader - Produces minified production builds containing only the classes you use, and skips work when nothing changed - Includes the CSS via a {% tailwind css %} template tag - Supports DaisyUI through tailwindcss-cli-extra - Targets Tailwind CSS 4.x Installation 1. Install the package 2. Configure Django settings Add to your settings.py : 3. Set up your base template Create or update your base template (e.g. templates/base.html ): 4. Start developing The watcher runs under Django's own auto-reloader, so editing settings.py (e.g. adding a new app) restarts it automatically and picks up the new configuration on the fly. Pass --noreload to opt out. First run creates a managed /.django tailwind cli/ directory for the CLI binary and an auto-generated source.css . The directory is automatically git-ignored — no entry in your project-level .gitignore needed. python manage.py tailwind setup walks the same ground: it checks each piece in order, stops at the first one that is missing with instructions, and performs the download and first build when they a","default_branch":null,"files":null,"tree":[],"storefront":"/r/django-commons","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/django-commons/django-tailwind-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}