报错信息

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

解决方案:

修改__init__.py (与settings.py同一个目录)

添加如下信息:

import pymysql
pymysql.install_as_MySQLdb()

相关文章:

  • 2022-03-02
  • 2022-12-23
  • 2021-07-13
  • 2021-11-28
  • 2021-09-14
  • 2021-09-21
  • 2021-10-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2021-10-21
  • 2021-08-23
  • 2021-04-26
相关资源
相似解决方案