sqlalchemy.exc.OperationalError
来源:7-3 登录退出(1)
不是一般的扯淡
2021-01-27
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: user [SQL: ‘SELECT user.uid AS user_uid, user.nickname AS user_nickname, user.mobile AS user_mobile, user.email AS user_email, user.sex AS user_sex, user.avatar AS user_avatar, user.login_name AS user_login_name, user.login_pwd AS user_login_pwd, user.login_salt AS user_login_salt, user.status AS user_status, user.updated_time AS user_updated_time, user.created_time AS user_created_time \nFROM user \nWHERE user.login_name = ?\n LIMIT ? OFFSET ?’] [parameters: (‘1’, 1, 0)] (Background on this error at: http://sqlalche.me/e/e3q8)
user_info = User.query.filter_by(login_name = login_name).first()
if not user_info:
resp['code'] = -1
resp['msg'] = "请输入正确的用户名和登录密码"
return jsonify(resp)
没有这几行代码可以运行 有这几行代码 ,一输入密码就报上面的错误
环境变量也设置了 set ops_config=local
1回答
-
编程浪子
2021-01-28
你好
你在哪里设置的环境变量,然后在那里的执行的启动程序? 这两个必须在同一个命令行,临时环境变量换了命令行会要重新设置
022021-02-02
相似问题