2

我明白了:

BadValueError: Property   is 804 bytes long; it must be 500 or less. Consider Text instead, which can store strings of any length.

我读到了这个:http ://blog.zmxv.com/2012/02/appengine-go-sdks-500-byte-string.html和这个:App Engine BadValueError On Bulk Data Upload - TextProperty was constred as StringProperty但我仍然不明白如何快速解决。

它说,考虑文字?我愿意考虑文字!:)

如果我将用户输入限制为 500 个字符,那会解决所有问题吗?谢谢..

4

1 回答 1

7

所以考虑TextProperty.

从切换。

yourproperty = db.StringProperty()

yourproperty = db.TextProperty()

你会没事的。请记住,TextProperty没有索引

于 2012-06-24T16:34:38.860 回答