时间:2021-07-01 10:21:17 帮助过:4人阅读
DATABASES = { "default": { "ENGINE": "django.db.backends.mysql", "HOST": "127.0.0.1", "PORT": 3306, "USER": "luffy_user", "PASSWORD": "luffy", "NAME": "luffy", } }
import pymysql pymysql.install_as_MySQLdb()
###也就是需要先安装pymysql模块
python项目_mysql数据库的使用
标签:ack mysq host sql name 配置 就是 code default