Django 1.9 - JSONField in Models

后端 未结 6 575
天命终不由人
天命终不由人 2020-12-30 02:16

I\'m trying to set up a models file in Django 1.9 using the new JSONField. I have found examples using postgres but none with MySql. In the examples with postgres they do

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 02:51

    Django JSONField is Postgres only.

    https://docs.djangoproject.com/en/3.0/ref/contrib/postgres/fields/#django.contrib.postgres.fields.JSONField

    UPDATE:

    There is support for MYSQL via 3rd party library django-mysql

提交回复
热议问题