根目录 bootstrap.py 完成环境创建、依赖安装、迁移、CSS 构建和 Django 检查
django-tailwind-daisyui-template — Django 启动器模板
作者 pranman
基于 Django 的启动器模板,集成 Tailwind CSS 与 daisyUI 组件,提供单命令初始化、开发脚本和验证流程。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
python bootstrap.py dev 同时运行 Django 与 CSS 监听,并支持浏览器刷新
集成 Tailwind CSS 与 daisyUI,内置 light、dark、cupcake 三套主题
提供响应式演示页面、共享 base.html 和本地静态资源
包含冷启动、安全重跑、进程清理和渲染样式的测试与 GitHub Actions 验证
支持 uv 与 pip 两种安装路径,重复执行保留已有配置和数据库记录
模板详细介绍
这是一个面向服务端渲染的 Django 应用启动器,仓库中同时包含 Tailwind CSS 与 daisyUI 的构建配置。README 说明它提供根目录下的 bootstrap.py 脚本,用于创建虚拟环境、生成私有 .env、安装锁定依赖、执行迁移、构建 CSS 并运行 Django 检查;重复执行会保留已有配置、密钥和数据库记录。开发命令 python bootstrap.py dev 会同时启动 Django 与 CSS 监听,并在模板和样式文件变更时刷新浏览器。模板自带一个响应式演示页面、共享的 base.html、本地静态资源,以及 light、dark、cupcake 三套 daisyUI 主题。仓库还包含针对冷启动、安全重跑、进程清理、渲染样式和主题的测试,以及 GitHub Actions 上的验证工作流。
使用前需要准备 Python 3.12、3.13 或 3.14,Node.js 22.10 以上或 24 LTS,npm 10 或 11,Git 用于克隆;uv 为可选,缺失时脚本回退到 pip。支持 Linux、macOS 和 Windows,bootstrap 脚本只检查前置条件,不安装系统运行时。
该模板定位为应用起点,README 明确提醒部署前需自行配置并验证托管环境,开发服务器仅限本地使用。仓库未提供 PyPI 项目生成器,许可方面可选用 MIT 或 GPLv3,第三方素材需单独核对授权。
适合你的项目吗?
适用场景
- 快速搭建一个使用 Django 服务端渲染并搭配 Tailwind CSS 与 daisyUI 的新项目
- 在本地开发环境中同时运行 Django 与 CSS 构建监听,并自动刷新浏览器
- 通过修改 theme/static_src/src/styles.css 和 MainApp 模板定制页面与主题
- 在 CI 中参照 verify.yml 工作流对模板的初始化与渲染进行验证
适合人群
- 需要 Django 与 Tailwind CSS、daisyUI 开箱集成的开发者
- 偏好服务端渲染和本地 SQLite 数据库起步的项目
- 希望用单条命令完成环境初始化与开发启动的团队
- 需要参考测试与验证流程来维护启动器模板的维护者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需预先安装 Python 3.12/3.13/3.14、Node.js 22.10+ 或 24 LTS、npm 10/11,Git 用于克隆
- 2
在项目根目录运行 python bootstrap.py 完成初始化,再运行 python bootstrap.py dev 启动开发
- 3
uv 为可选工具,未安装时脚本使用 pip;.python-version 与 .nvmrc 分别指定 Python 3.13 和 Node 24
- 4
重复运行 setup 会保留已有 .env、密钥和数据库记录,不会创建管理员账户
- 5
开发服务器仅限本地使用,部署前需自行配置并验证托管环境
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 该模板仅为应用起点,部署前需自行配置并验证托管环境;内置开发服务器仅限本地使用,不可直接用于生产环境。
- bootstrap 脚本只检查前置条件,不会自动安装 Python、Node.js 等系统运行时,需用户自行预先安装。
- 初始化脚本不会创建管理员账户,需用户自行通过 Django 管理命令创建。
- 项目仅作为源码模板提供,当前不提供 PyPI 项目生成器。
- 项目采用双许可,用户需在 MIT 与 GPLv3 之间二选一,并遵守所选许可证的全部条款。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
This is an application starter. Configure and verify your hosting environment before deploying it; the development server is for local use.
README 原文
The bootstrap script checks prerequisites and does not install system runtimes.
README 原文
Setup does not create an administrator account.
README 原文
This is a source template; a PyPI project generator is not currently provided.
README 原文
https://github.com/pranman/django-tailwind-daisyui-template/blob/main/LICENSEhttps://github.com/pranman/django-tailwind-daisyui-template/blob/main/README.mdChoose either the [MIT License](LICENSE) or the [GNU General Public License v3.0](LICENSE.GPL), as documented in those files.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-06。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 71 / 100
- 技术栈
- Django
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-10-06
- 截图检查日期
- 2026-10-06
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Django。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-06
查看当时使用的来源资料
SHA-256: 2af8983ad07f864e3eb6dec67f523b30ebc6e0addae6fd0875642ee7578dd004
2026-10-06T14:15:55.989Z
来源文件 / 仓库# Django + Tailwind CSS + daisyUI Starter Template [](https://github.com/pranman/django-tailwind-daisyui-template/actions/workflows/verify.yml) A Django starter with Tailwind CSS, daisyUI components, one-command setup, and a tested development workflow. Start with server-rendered pages, a local SQLite database, and a CSS build you can customize. [Use this template](https://github.com/pranman/django-tailwind-daisyui-template/generate) · [Development](docs/development.md) · [Customization](docs/customization.md) · [Deployment](docs/deployment.md) · [Troubleshooting](docs/troubleshooting.md)  ## What is included - Django 5.2 LTS with explicit environment configuration and a unique local secret. - Tailwind CSS 4 and daisyUI 5, with working light, dark, and cupcake themes. - One root setup script, locked uv and pip installation paths, and no manual virtual-environment activation. - A development command that runs Django and the CSS watcher together, with browser refresh for template and stylesheet edits. - An accessible, responsive demo with local assets and one shared base template. - Tests for fresh setup, safe reruns, process cleanup, rendered styling and themes. This is an application starter. Configure and verify your hosting environment before deploying it; the development server is for local use. ## Prerequisites Install these tools and make them available in your terminal: | Tool | Supported versions | | --- | --- | | [Python](https://www.python.org/downloads/) | 3.12, 3.13 or 3.14; use a current patch | | [Node.js](https://nodejs.org/en/download) | 22.10 or newer in the 22 series, or 24 LTS | | npm | 10 or 11, normally supplied with Node.js | | [uv](https://docs.astral.sh/uv/getting-started/installation/) | Optional; setup uses pip when uv is absent | | [Git](https://git-scm.com/downloads) | Required for cloning and checkout verification; not for setup from a source archive | The supported platforms are Linux, macOS and Windows. `.python-version` selects Python 3.13 for uv; `.nvmrc` selects Node 24 for compatible version managers. The bootstrap script checks prerequisites and does not install system runtimes. The [verification matrix](docs/verification.md#hosted-matrix) records the tested combinations; browser automation uses Chromium on Linux. ## Start a project Choose **Use this template** on GitHub and clone your new repository, or clone this starter directly: ```bash git clone https://github.com/pranman/django-tailwind-daisyui-template.git my-project cd my-project python bootstrap.py python bootstrap.py dev ``` Here `python` means a supported Python interpreter. On macOS/Linux you may need `python3`; on Windows you can use `py -3.13` instead. Setup creates `.venv` and a private `.env`, installs locked Python and frontend dependencies, runs migrations, builds CSS, and checks Django. It prints `Setup complete` when all steps succeed. Re-running setup preserves existing configuration, secrets and database records. Open **http://127.0.0.1:8000/**. Try the theme selector and local form preview. Press **Ctrl+C** to stop both development processes. For later sessions, run `python bootstrap.py dev` again. ## Everyday commands ```bash python bootstrap.py check # Read-only diagnostics python bootstrap.py dev --port 8001 # Use another local port python bootstrap.py --installer pip # Explicit pip setup python bootstrap.py --installer uv # Explicit uv setup ``` You do not need to activate `.venv`. Setup does not create an administrator account. See [development](docs/development.md) for management commands, tests, and the project layout. ## Make it yours - Page content: `MainApp/templates/MainApp/home.html` - Shared layout: `templates/base.html` - Tailwind sources and daisyUI themes: `theme/static_src/src/styles.css` - Demo interactions: `MainApp/static/MainApp/js/demo.js` - Local settings: `.env`, using [the configuration reference](docs/configuration.md) [Customization](docs/customization.md) covers new pages, utilities and themes. [Deployment](docs/deployment.md) covers production settings, migrations, asset builds and static collection. [Troubleshooting](docs/troubleshooting.md) covers missing tools, failed installs and stale CSS. ## Verification and support [Verification](docs/verification.md) explains cold setup, safe reruns, process cleanup and production checks. [Browser checks](docs/browser-checks.md) cover rendered styling, theme changes, accessibility and real reload. The aggregate **Starter verification** check must pass before a release. See the [support policy](docs/support.md), [security reporting](SECURITY.md) and [changelog](CHANGELOG.md) for maintenance and release information. This is a source template; a PyPI project generator is not currently provided. ## License and acknowledgements Choose either the [MIT License](LICENSE) or the [GNU General Public License v3.0](LICENSE.GPL), as documented in those files. Thanks to [Tom Dekan](https://tomdekan.com/articles/tailwind-with-django) for the original article on integrating Tailwind with Django, and to the maintainers of [Django](https://www.djangoproject.com/), [django-tailwind](https://github.com/timonweb/django-tailwind), [Tailwind CSS](https://tailwindcss.com/) and [daisyUI](https://daisyui.com/).
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

django-react-template
django-react-template 是一个面向 Django 与 React 开发者的启动模板,旨在减少新项目初始化时的重复工作。
Django · 启动器

django-react-boilerplate
django-react-boilerplate 是一个面向 SaaS 应用的 Django + React 启动器,其核心思路是“自己动手”。
Django · SaaS

typescript-backend-toolkit
Production-ready Express.js/TypeScript framework with auto-generated OpenAPI, Artisan-style CLI, plugin system…
Django · 后台

django-saas-boilerplate
A modern, production-ready Django boilerplate for building SaaS applications with HTMX, Tailwind CSS, and Alpi…
Django · SaaS

django-starter-template
A production-ready Django 5.2 LTS template
Django · 启动器

Django-website-template
Django templates for freelancer's, agencies to supercharge development
Django · 启动器
