摘要:
问题1.将主键id改成自动生成的python3 manage.py migrate时报下面的错误 django.db.utils.InternalError: (1091, "Can't DROP 'id'; check that column/key exists") 我猜测是因为我改了两个表的主 阅读全文
摘要:
第一步:安装PyMySQ代替MySQLdb pip3 install PyMySQL 然后在工程目录的__init__.py中填写下面两句话 import pymysql pymysql.install_as_MySQLdb() import pymysql pymysql.install_as_M 阅读全文