Skip to main content

An easy to use postgres hstore field that is based on django-hstore-widget

Project description

django-hstore-field

Downloads CI Pypi Badge pre-commit.ci status

An easy to use postgres hstore field that is based on django-hstore-widget

Requirements

  • Python 3.9 and Up ( well technically any python version from 3.6 should work )
  • Django 3.2 and Up
  • Modern browsers ( Chrome 112+, Firefox 117+, Safari 16.5+ )
pip install django-hstore-field

Installation

Option 1:

Include django-hstore-widget in your settings.py:

# settings.py

INSTALLED_APPS = [
    ...,
    'django_hstore_widget',
    ...
]

Option 2:

Include django_hstore_widget's migration to any of your model

# Generated migration file
from django.db import migrations, models
import django.contrib.postgres.fields


class Migration(migrations.Migration):
    dependencies = [
        ("django_hstore_widget", "__latest__"),
    ]

    operations = [
        # any operations
    ]

Usage

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


class ExampleModel(models.Model):
    data = HStoreField()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_hstore_field-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_hstore_field-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file django_hstore_field-0.0.1.tar.gz.

File metadata

  • Download URL: django_hstore_field-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for django_hstore_field-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf2174c43652fb7ff8e6eb5d534ca4f50957c176c569f9b4bb8327374a8f7aef
MD5 4a583abb24a60cb707d20a72a1c36e33
BLAKE2b-256 1e0bba6a69108d6384766a2da717e265097f1d2d24ebab139aba7c290fe1db44

See more details on using hashes here.

File details

Details for the file django_hstore_field-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_hstore_field-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc9fe9cae8ca48cc8628d55b0e2c1dc65883a8992dcf0486ddf338220d51b05
MD5 1cb4b10475d74b798e3282cfb1a5f3bc
BLAKE2b-256 ecfdca2bc1c96eacd88f1f1d8519fc91b5f23fe8a226f2037abcb097ca5196ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page