Django + MySQL - Unknown encoding: utf8mb4

前端 未结 3 1249
[愿得一人]
[愿得一人] 2021-02-08 23:08

MySQL 5.5.35 Django 1.6.1

In order to support emoticons in the DB, I have configured in my django settings:

\'OPTIONS\': {\'charset\': \'utf8mb4\'}
         


        
3条回答
  •  日久生厌
    2021-02-08 23:44

    If you really need utf8mb4, follow the steps in https://mathiasbynens.be/notes/mysql-utf8mb4, and make sure your python package "MySQL-python" version is >= 1.2.5 !

提交回复
热议问题