摘要:
报错:'bool' object is not callable 原因:is_authenticated是属性而不是方法 解决:把括号去掉就可以了 demo: class A(): def __init__(self, x): self.x = x def add(self): return 3 a 阅读全文
摘要:
问题: python manage.py createsuperuser 无法创建超级用户 报错:django.db.utils.DataError: (1406, "Data too long for column 'password' at row 1") 问题原因:用户模型继承 Abstrac 阅读全文