【发布时间】:2015-12-07 13:49:00
【问题描述】:
如何使用 django 模型在 mysql 中创建 double 字段。我遇到了这个错误以及如何使用 django 创建longtext 数据类型
class Test(models.Model):
maxcount = models.DoubleField(null=True) ## double DEFAULT NULL,
cs = models.TextField()#longtext,
错误:
maxcount = models.DoubleField(null=True) ##double DEFAULT NULL,
AttributeError: 'module' object has no attribute 'DoubleField'
【问题讨论】:
标签: python django django-models django-forms