object supporting the buffer API required python使用django连接数据库时报错。 object supporting the buffer API required 原因 数据库使用密码时用的是整形,而不是字符串 解决方案 密码使用字符串即可: