Skip to content

Flask (python)

First, you need to activate the python environment with

source ~/py_envs/bin/activate

Then, activate venv environment with

. .venv/bin/activate

To start up dev server to display hello.py

flask --app hello run

  • if filename is app.py or wsgi.py, just run flask run
  • don't name it flask.py