Cannot initialize flask initdb (Flask Tutorial Step4)
I think you should follow this:
edit the configuration in the
flaskr.py
file or export anFLASKR_SETTINGS
environment variable pointing to a configuration file.install the app from the root of the project directory
pip install --editable .
Instruct flask to use the right application
export FLASK_APP=flaskr
initialize the database with this command:
flask initdb
now you can run flaskr:
flask run
Pay attention to install --editable
correctly. I don't see the "." the first time.