Skip to main content

Same as Django JSONField but represent it as YAML (internally stores as JSON)

Project description

django-yaml-field

Same as Django JSONField but represent it as YAML (internally stores as JSON)

Pip install

pip install django-yaml-field

Example

from django.db import models
from django_yaml_field import YAMLField


class ModelName(models.Model):
	yaml = YAMLField()

Allows querying the stored data using lookups in the same way described in Django documentation

Syntax Highlight

If you want a nice syntax highlight in form, you can use with django-ace

from django_ace import AceWidget

@admin.register(ModelName)
class ModelName(admin.ModelAdmin):

	formfield_overrides = {YAMLField: {"widget": AceWidget(mode="yaml")}}

License

MIT

Project details


Download files

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

Source Distribution

django_yaml_field-0.1.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

django_yaml_field-0.1.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file django_yaml_field-0.1.3.tar.gz.

File metadata

  • Download URL: django_yaml_field-0.1.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for django_yaml_field-0.1.3.tar.gz
Algorithm Hash digest
SHA256 750567c1fe9858d0ecf664fa17b5485e5d71722dad45db485b96b096bc26cef5
MD5 1becf9af77b0469aa5c4c25a2b39de43
BLAKE2b-256 66f017ba5af2bbc2e6e9888de5644f00c26aeb166771b215480d376acf6555c5

See more details on using hashes here.

File details

Details for the file django_yaml_field-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_yaml_field-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c1d1c167c4793cf61ddf96e67b8a3a332c24c0b0b4408ae9a2129b7960705721
MD5 e316c45d8871c6ee73a54dc6792d2241
BLAKE2b-256 dbea1c7457e3402585af798b85f9afb398b8a47e083a9499c887653820c64302

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