摘要:
————Python3.3—connector/python 1.1.4—————————————manage.py syncdb出现TypeError:sql_for_inline_foreign_key_references() takes 4 posional arguments but 5 were given...解决方法:修改在python\Lib\site-packages\mysql\connector\django中的creation.py,修改他的方法,原本是-》def sql_for_inline_foreign_key_references(self, field, k 阅读全文
摘要:
———————————————python3.3_connector1.1.4_windows—————————————————————首先在http://dev.mysql.com/downloads/connector/python/下载connector/python,然后直接点击安装包进行安装,如果安装python的时候选择的是只为自己安装这个选项,那么就会出现在安装connector/python的时候提示说找不到python3.3...1、连接mysqlimportmysql.connectorcnx=mysql.connector.connect(user='root 阅读全文