擅长:python、mysql、java
<p>你不需要在1.10上使用Django_Hstore扩展。在</p>
<p>添加'django.contrib.postgres公司'在已安装的应用程序中。在</p>
<p>如果在Postgres上没有启用hstrone,请运行sql脚本:<code>CREATE EXTENSION IF NOT EXISTS hstore</code></p>
<p>在型号上:
添加:<code>from django.contrib.postgres.fields import HStoreField</code></p>
<p>添加字段:<code>data = HStoreField()</code></p>
<p><a href="https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/fields/#hstorefield" rel="nofollow noreferrer">For More İnformation :</a></p>