报错:
django.db.utils.OperationalError: (2026, 'TLS/SSL error: Server certificate validation failed. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. Error 0x800B0109(CERT_E_UNTRUSTEDROOT)')
在模型下的__init__方法中添加即可
python
import pymysql
pymysql.install_as_MySQLdb()