Proyek Django HStore

Monorepo untuk ekosistem Django HStore, dukungan PostgreSQL hstore yang ramah manusia untuk Django admin.

Paket

django-hstore-widget

Widget kustom untuk mengedit data hstore di Django admin. Dibangun dengan Lit dan TypeScript untuk editor key-value responsif.

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

HStoreField drop-in dengan widget auto-wired. Nul konfigurasi untuk proyek baru.

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

Mulai cepat

Untuk proyek baru, gunakan 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 auto-wired, tidak perlu konfigurasi formulir.

Isi

Konteks LLM