错误类型:

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过滤器中必须输入条件去掉

错误代码如下:

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

 

相关文章: