Answer the question
In order to leave comments, you need to log in
Flask-Migrate not working (Failed to find Flask application or factory in module "app"), how to fix?
The project structure :
app/app.py
: contains the initialization of the application itself, the database, etc.
run.py
:
from app import app
if __name__ == "__main__":
app.run(port=5000, host='127.0.0.1', debug=True)
flask db migrate -m "ADD: transliteration"
, Error: Failed to find Flask application or factory in module "app". Use "FLASK_APP=app:name to specify one.
FLASK_APP = 'app:app/app.py'
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