Skip to content

Instantly share code, notes, and snippets.

@TheMuellenator
Forked from angelabauer/main.py
Last active November 14, 2025 21:51
Show Gist options
  • Select an option

  • Save TheMuellenator/29acd670326c6313bc2b8f7e66fd441f to your computer and use it in GitHub Desktop.

Select an option

Save TheMuellenator/29acd670326c6313bc2b8f7e66fd441f to your computer and use it in GitHub Desktop.
Day 61 L464 - Installing Flask-WTF
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
return render_template('index.html')
@app.route("/login")
def login():
return render_template("login.html")
if __name__ == '__main__':
app.run(debug=True)
@Miguel-Barroso
Copy link

If you don't understand why there is no Login button, go back and check the lessons on Bootstrap!

@olatideenoch
Copy link

Just incase someone might need it. Here are the updated version of the required packages in the requirements.txt file

Bootstrap_Flask==2.5.0
Flask==3.1.2
WTForms==3.2.1
Flask_WTF==1.2.2
Werkzeug==3.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment