flask 入门,遇到一点小问题,求问目录结构该是怎样的? 因为我是按照 https://blog.miguelgrinberg.c... 这个教程做的,代码都核对过没有问题, 所以我想大概是文件放错位置了吗?
目前的结构是这样,请问有错么?
+--app
+--__init__.py
+--forms.py
+--templates
+--base.html
+--index.html
+--login.html
+--views.py
+--config.py
+--flask(这是虚拟环境)
+--run.py
现在登录http://127.0.0.1:5000/没问题,/index也没问题,可是login界面显示不了,打开就是url not found
既然提示了url not found,那就说明你的路由写错了。你应该把路由相关代码贴出来。