开始
由于代码很冗长,我不在此复制粘贴了😂
github:github
其中:
main.py
——调度文件
usr.json
——用户信息(密码存储哈希值)
templates/index.html
——首页
templates/home.html
——主页
templates/login.html
——登陆页
templates/register.html
——注册页
templates/del.html
——删除博客的冗余页
templates/editBlog.html
——修改博客的页面(也很冗余)
templates/me.html
——个人主页
templates/pageErr.html
——错误页
templates/search.html
——搜索页(也很冗余)
templates/sha256.js
——sha256
库源文件
templates/writeBlog.html
——写博客页
templates/blog
——博客存储路径
代码写个不很复杂,自己看吧。😜
声明
此代码仅供学习使用,不保证数据绝对安全,作为商业用途请谨慎考虑
作者
hit-road
拜拜,下课!
hit-road不定期跟新,不见不散!