weijiang1994 / Blogin

A blog system depend on flask.使用flask框架开发的个人博客系统.
https://2dogz.cn
GNU General Public License v3.0
509 stars 99 forks source link

进首页显示404 #39

Closed unDie-BestHYJ closed 1 year ago

unDie-BestHYJ commented 1 year ago

请问我把博客部署到ubuntu系统的服务器后,进入首页显示404,但是其它页面正常显示是什么问题啊 image image image

weijiang1994 commented 1 year ago

看看日志,报错了

unDie-BestHYJ commented 1 year ago

提示的这个 image

unDie-BestHYJ commented 1 year ago

这会不会和python版本有关系啊,我本地用的python3.6就没问题,我云服务器用的Python3.8的,就有这个问题

weijiang1994 commented 1 year ago

你依赖怎么安装的?是不是pip install -r requirment.txt这个命令?依赖库的版本需要保持一致

weijiang1994 commented 1 year ago

你看根目录的requirements.txt文件,里面有每个依赖的版本号。

unDie-BestHYJ commented 1 year ago

我刚看了,我好像flaalembic==1.4.3没安装,但是这个好像装不了 image

weijiang1994 commented 1 year ago

pip install Flask-SQLAlchemy==2.4.4 SQLAlchemy==1.3.19

unDie-BestHYJ commented 1 year ago

zhuangle装了之后又是这个报错 image

weijiang1994 commented 1 year ago

你直接重新安装吧 pip install -r requirements.txt -i https://pypi.douban.com/simple

weijiang1994 commented 1 year ago

没有的库,在requirements.txt文件中删除掉

unDie-BestHYJ commented 1 year ago

嗯呐,谢谢大佬

weijiang1994 commented 1 year ago

可以帮我点一个 :star2: :smile:

unDie-BestHYJ commented 1 year ago

没问题😄