django报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?

django 迁移数据库报错

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?

解决方案:在settings.py同级目录中的__init__.py文件中加入:

import pymysql
pymysql.install_as_MySQLdb()
上一篇:[AngularJS] Adding custom methods to angular.module


下一篇:RTMP、RTSP、HTTP视频协议详解(转)