main.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:flask-thirdLogin-demo 作者: staugur 项目源码 文件源码
def index():
    app.logger.info(request.cookies)
    if request.cookies.get("username"):
        return render_template("index.html")
    else:
        return """<form action="%s" method='post'>
            <input type="text" name="username" required>
            <input type="password" name="password" required>
            <input type="submit" value="??">
            </form>""" %url_for("login")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号