具体报错如下:

发生这个问题的原因是因为:MySQL的数据库的字符集的问题
解决方法:MySQL的字符集,需要设置为:utf8 / utf8mb4
具体如下:

注意,其中参数【character_set_server = utf8】

然后,再次执行Django manage.py的migrate就没问题了:


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装