随笔分类 -  Create A Flask Blog - Flask Friday笔记

https://www.youtube.com/playlist?app=desktop&list=PLCC34OHNcOtolz2Vd9ZSeSXWc8Bq23yEz
摘要:消息闪现 消息闪现 {% for message in get_flashed_messages() %} <div class="alert alert-success alert-dismissible fade show" role="alert"> {{ message }} <button 阅读全文
posted @ 2023-11-30 18:25 CVE_2003_0102 阅读(13) 评论(0) 推荐(0)
摘要:链接 传递参数 阅读全文
posted @ 2023-11-30 17:08 CVE_2003_0102 阅读(21) 评论(0) 推荐(0)
摘要:# localhost:5000/user/John @app.route("/user/<name>") def user(name): return render_template("user.html", user_name=name) 这段代码是使用了 Flask 框架创建一个路由。具体解释 阅读全文
posted @ 2023-10-30 17:12 CVE_2003_0102 阅读(14) 评论(0) 推荐(0)
摘要:export FLASK_ENV=development export FLASK_APP=hello.py flask run --debug 阅读全文
posted @ 2023-10-30 15:36 CVE_2003_0102 阅读(137) 评论(0) 推荐(0)
摘要:flask官网: https://flask.github.net.cn/ git官网: https://git-scm.com/ 建立文件: 建立虚拟环境、激活: source virt/Scripts/activate 建立文件: touch hello.py 以项目方式打开: from fla 阅读全文
posted @ 2023-10-30 15:26 CVE_2003_0102 阅读(20) 评论(0) 推荐(0)