没有user表,怎么解决
来源:4-8 数据库ORM
qq_流星划过的天空_0
2019-05-03
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 FROM user WHERE user.login_name = ? LIMIT ? OFFSET ?] [parameters: (‘qwe’, 1, 0)] (Background on this error at: http://sqlalche.me/e/e3q8)
在操作后台管理员模块功能的时候,报错说没有user表,已经都建好了表,其他我文件内容也都和老师的文件里一样,不知道是哪里报错了
1回答
-
编程浪子
2019-05-03
windows下面设置环境变量 是 set ops_config=local (linux下面是export ops_config=local) 。然后执行 python manager.py run
012020-02-09
相似问题