老师,你定义了validate_account这个验证重复的函数,为什么没有调用啊,也有可能是我没听仔细,还有我这里如果邮箱没有重复但是nickname重复了会报一个很长的错sqlalchemy.exc.IntegrityError: (cymysql.err.IntegrityError) (1062, “Duplicate entry ‘dm’ for key ‘nickname’”) [SQL: ‘INSERT INTO user (create_time, status, email, nickname, auth, password) VALUES (%s, %s, %s, %s, %s, %s)’] [parameters: (1536562861, 1, ‘888@qq.com’, ‘dm’, 1, ‘pbkdf2:sha256:50000hCHkAIjThCHkAIjThCHkAIjTcfc617f5e32481fcf417b87cc6e8f78c743549a0699d0e022814d5870d1da173’)] (Background on this error at: http://sqlalche.me/e/gkpj) // Werkzeug Debugger