开发者

ignoring WARNINGs in Django

Hay, my model is a through a "Data truncated for column 'password' at row 1" warning. This is fine, the data does get truncated, but it get fills back in by a different function later on.开发者_如何学运维

How can i get django a ignore this warning? I think it's called on the Save() method.


The warning you see there is from your backend database (looks like a mySQL warning to me).

I don't really think turning database level warnings off is a good idea. You should probably make sure the data is NOT being truncated instead - Why let the system take junk data?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜