django-tailwind
Tailwind CSS Framework for Django projects
What it is and what it does
Django-tailwind is a Django app that streamlines Tailwind CSS integration into Django projects. It generates a new Django app with all necessary configuration files and provides management commands to initialize, install, and run Tailwind CSS alongside Django's development server. The package supports two installation modes: a standalone binary that works without Node.js, or an npm-based setup for those who prefer npm tooling. It includes hot reloading of CSS, configuration files, and templates to eliminate manual page refreshes during development, plus built-in support for CSS imports, nesting, and optional DaisyUI components.
The package depends on django and pytailwindcss as its core runtime dependencies. It's designed for Django 4.2.20 and newer across versions 5.0 through 6.0, and requires Python 3.11 or newer. The project is actively maintained with recent releases and carries no known security vulnerabilities, making it suitable for both development and production use.
Use it for:
- Set up a new Django project with Tailwind CSS styling without manually configuring build tools or Node.js dependencies.
- Add Tailwind CSS to an existing Django application with automatic hot reloading during template and configuration changes.
- Develop Django templates using Tailwind utility classes with a single command that runs both Django and Tailwind servers together.
- Integrate DaisyUI pre-built components into a Django project for faster UI development with Tailwind.
- Manage Tailwind CSS plugins through Django management commands without leaving the Django development workflow.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Tailwind CSS into Django projects with optional hot reloading, supporting both standalone binary and npm-based installation modes without requiring Node.js for the standalone option.
Yes. Django-tailwind is actively maintained, carries no known vulnerabilities, and has low installation friction with only two runtime dependencies. It's production-stable (Development Status 5) and supports current Django and Python versions. Choose it if you want Tailwind CSS in Django with minimal setup overhead and optional Node.js-free operation via the standalone binary mode.
Install
django-tailwind on PyPI
pip
pip install django-tailwinduv
uv add django-tailwindpoetry
poetry add django-tailwindInstalling django-tailwind
Before you install
Low friction: pure Python wheel with only two runtime dependencies (django and pytailwindcss). Active maintenance with recent releases and no known vulnerabilities.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal attribution requirements.
Quickstart
pip install django-tailwind
# In settings.py, add to INSTALLED_APPS:
INSTALLED_APPS = ["tailwind"]
# Then run:
python manage.py tailwind init
python manage.py tailwind install
python manage.py tailwind dev
Requires Python 3.11 or newer and Django 4.2.20 or newer; Node.js is optional depending on installation mode chosen.
Verify before relying
- Whether the standalone binary mode truly works on all operating systems without Node.js, or if certain platforms have undocumented requirements
- Performance characteristics of hot reloading with large template sets or complex Tailwind configurations
- Compatibility details with Django middleware or third-party packages that might interfere with the development server
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — django, pytailwindcss |
| Maintenance | actively maintained — 63 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 408,620/month — #6,875 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_tailwind-4.5.0-py3-none-any.whl
Keywords: css, django, tailwind
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
django-viteIntegrates Vite, a modern JavaScript build…
permissive · top 5,000 on PyPI
pytailwindcssInstalls and wraps the standalone Tailwind CSS…
permissive · top 15,000 on PyPI
crispy-tailwindProvides Tailwind CSS styling templates for…
permissive · top 15,000 on PyPI
django-unfoldReplaces Django's default admin interface with…
permissive · top 5,000 on PyPI
django-webpack-loaderIntegrates Webpack-compiled bundles into Django…
permissive · top 5,000 on PyPI
django-navhelperProvides Django template tags to automatically…
permissive · top 15,000 on PyPI
django-sass-processorCompiles SASS/SCSS files to CSS on the fly…
permissive · top 15,000 on PyPI
django-summernoteEmbeds the Summernote WYSIWYG editor into…
permissive · top 15,000 on PyPI
django-browser-reloadAutomatically reloads your browser when you…
permissive · top 15,000 on PyPI
pegasus-cliA command-line tool for managing SaaS Pegasus…
permissive · top 15,000 on PyPI