templates/index.html

hello.py

static/main.css

  • Run app
export FLASK_APP=app.py
flask run

Access html template through flask rather than filestystem

http://127.0.0.1:5000/

Prepare Flask app for deployment (Heroku)

pip install gunicorn
nano Procfile
web: gunicorn app:app
  • Generate a list of installed Python packages
pip freeze > requirements.txt
  • fix: MarkupSafe ==2.0.1