app.py 文件源码

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

项目:WWCodeManila-Python 作者: wwcodemanila 项目源码 文件源码
def hello():
    form = ReusableForm(request.form)

    print(form.errors)
    if request.method == 'POST':
        name=request.form['name']
        password=request.form['password']
        email=request.form['email']
        print(name, " ", email, " ", password)

        if form.validate():
            # Save the comment here.
            flash('Thank you, ' + name)
        else:
            flash('Error: All the form fields are required. ')

    return render_template('hello.html', form=form)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号