Django项目解决Error loading MySQLdb module 在项目__init__.py文件中引入模块: import pymysql pymysql.install_as_MySQLdb() 解决! 关注公众号一起学python