Python:sql_for_inline_foreign_key_references() takes 4 positional arguments but 5 were given
2013-12-24 14:55
441 查看
相关版本:Python3.3 Django1.6 使用MySql官方中间件 mysql-connector-python-1.1.4-py3.3
报错:Python:sql_for_inline_foreign_key_references() takes 4 positional arguments but 5 were given
解决办法:
C:\Python33\Lib\site-packages\mysql\connector\django
在这个文件夹下找到:creation.py
修改方法: sql_for_inline_foreign_key_references为:只修改方法参数即可
def sql_for_inline_foreign_key_references(self, model, field, known_models, style):
报错:Python:sql_for_inline_foreign_key_references() takes 4 positional arguments but 5 were given
解决办法:
C:\Python33\Lib\site-packages\mysql\connector\django
在这个文件夹下找到:creation.py
修改方法: sql_for_inline_foreign_key_references为:只修改方法参数即可
def sql_for_inline_foreign_key_references(self, model, field, known_models, style):
相关文章推荐
- Python 错误之函数takes 0 positional arguments but 1 was given
- Python-类-函数参数-takes 0 positional arguments but 1 was given
- python3中遇到的一个bug TypeError: is_empty() takes 0 positional arguments but 1 was given
- takes 0 positional arguments but 1 was given
- TypeError: readfile() takes 1 positional argument but 2 were given
- #Tensorflow# TypeError: set_shape() takes 1 positional argument but 2 were given
- flask函数已定义参数却出现takes 0 positional arguments but 1 was given的问题
- takes 3 positional arguments but 4 were given错误
- main() takes 0 positional arguments but 1 was given
- TypeError in Threading. function takes 1 positional argument but 100 were given
- 编写测试代码时候的小错误——takes 0 positional arguments but 1 was given
- sql: Query to Display Foreign Key Relationships and Name of the Constraint for Each Table in Database
- PL/SQL and Python scripts for the same function
- 解决python中TypeError: not enough arguments for format string
- SQLServer FOREIGN KEY ON DELETE CASCADE 限制条件
- Coursera课程Python for everyone:Quiz: Multi-Table Relational SQL
- c++ complier errors:passed arguments, but takes just
- sql for generated key
- Magento报错之SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry for key 1
- SQL FOREIGN KEY(约束)