ttmouse/dsh-taskboard:DSH 的本地优先任务板插件

ttmouse/dsh-taskboard 是面向 DeepSeek Harness (DSH) 的本地优先任务板插件,数据完全保存在本地 SQLite 数据库,不依赖外部云服务。该插件由 chuspeeism/dashi-taskboard 衍生而来,核心功能包括支持 Kanban、列表、甘特图、工作流及仪表盘五种视图;任务详情涵盖关联、附件、标签及每任务 AI 聊天;支持自动认领 workspace 映射项目中最旧的 todo 任务,并通过 dsh-routines 以无头会话执行,进度写回评论。插件实现 DSH workspaces 与 board projects 的自动同步,并可将任

Read More
Django ORM Practical Guide: CRUD Operations with SQLite Database

This article introduces the operation methods of Django framework combined with SQLite database, focusing on the use of ORM tools. Django ORM allows database operations through Python code, avoiding the need to write complex SQL statements. SQLite is lightweight and easy to use, making it suitable for development and learning. Preparatory work includes: creating a new Django project (`startproject`/`startapp`), configuring SQLite by default in `settings.py`, defining models (such as a `User` class), and executing `makemigrations` and `migrate` to generate database tables. The core is the CRUD operations of Django ORM: **Creation** can be done via `create()` or instantiation followed by `save()`; **Reading** uses `all()`, `filter()`, `get()` (supporting conditions and sorting); **Updating** uses `update()` for batch operations or querying first then modifying; **Deletion** uses `delete()` for batch operations or querying first then deleting. It is important to note the lazy execution of QuerySet, using `unique=True` to prevent duplicates, and exception handling for `get()`. Summary: By defining models, migrating table structures, and calling ORM methods, database operations can be completed. The code is concise and easy to maintain, making it suitable for quickly getting started with web development.

Read More