【解决方法】django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes');


mysql配置文件my.ini文件配置如下后,重启MySQL即可 default-storage-engine=INNODB innodb_large_prefix=on

重启命令 net stop mysql net start mysql