-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
直接运行models.py会报错 #3
Comments
我也遇到了类似问题,你说的注释的方法不管用啊。 |
第8行,应该是下面的吧? |
是的错误如下,请问您知道怎么解决吗? |
他网站说了,要把 models.py 拷到上一级目录就可运行的。 |
请问我的报错这样 model.py以及__init__.py都有conf.config,不知道具体怎么操作这两个py文件才可以解决这个问题 |
同问 |
app_init_.py 中修改 |
@codeliuyang 的方法亲试可以 |
今天clone下来,直接运行
python models.py
会报错。
改正方法:
注释其中两行
#from app import login_manager
#@login_manager.user_loader
即可运行成功,把表插入数据库。
记得之后把注释取消掉
The text was updated successfully, but these errors were encountered: