Answer the question
In order to leave comments, you need to log in
When checking email and password does not go to the right page (FLASK PYTHON)?
I have forms.py in which there are 2 variables email and password , they have a built-in validator = (Data.Requiered email) and validator = (DataRequiered password)
then there is an html file in which form is created with methods="POST" action= "login", in which the fields for entering email and password and the LOGIN button are created, there is also the main start.py file for the web application, 3
@app.route
1) @app.route("/")
return render_template("index.html")
2) @app.route("/login", methods = ["POST", "GET"])
form1.validate_on_submit():
render_template("main.html", form=form1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question