TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given

错误类型:

TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given

截图如下:

解决办法:

在forms.py文件中,把name为remeber过滤器中必须输入条件去掉

错误代码如下:

正确代码:

猜你喜欢

转载自blog.csdn.net/aimill/article/details/81134084
今日推荐