Dự án Django HStore

Một monorepo cho hệ sinh thái Django HStore, hỗ trợ PostgreSQL hstore thân thiện với con người cho Django admin.

Gói

django-hstore-widget

Widget tùy chỉnh để chỉnh sửa dữ liệu hstore trong Django admin. Xây dựng với Lit và TypeScript cho trình soạn thảo khóa-giá trị phản hồi.

pip install django-hstore-widget
https://pypi.org/project/django-hstore-widget/
django-hstore-field

HStoreField thay thế với widget tự động kết nối. Không cần cấu hình cho dự án mới.

pip install django-hstore-field
https://pypi.org/project/django-hstore-field/

Bắt đầu nhanh

Đối với dự án mới, sử dụng django-hstore-field:

# models.py
from django.db import models
from django_hstore_field import HStoreField

class Product(models.Model):
    name = models.CharField(max_length=100)
    metadata = HStoreField()

Widget tự động kết nối, không cần cấu hình biểu mẫu.

Nội dung

Hướng dẫn người dùng

Hướng dẫn nhà phát triển

Ngữ cảnh LLM