开发者

ignoring WARNINGs in Django

开发者 https://www.devze.com 2023-01-05 04:38 出处:网络
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.开发者_如

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

精彩评论

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