when writing web programs using the Flask web framework, the form class selects flask_wtf.
inherits FlaskForm when creating a class, and writes constructs in subclasses that always report errors. I don"t know why?
from flask_wtf import FlaskForm
class Auth(FlaskForm):
def __init__(self, *args, **kwargs):
super(Auth, self).__init__(*args, **kwargs)
""" """
from . import forms
@auth.route("/")
def index():
s = forms.Auth()
return render_template("auth/index.html")