This demonstrates that you can configure a Flask application through Flask-Script, without having to create a Flask instance or deal with circular dependencies. Note that Flask-Script's Manager accepts a factory function in place of a Flask app object.
Running:
python manage.py runserver
gives "Hello, world!" on http://localhost:5000/, while running:
python manage.py -c development.cfg runserver
gives "Hello, developer!".
I copied this into my project but can not seem to actually pass a value into create_app.
I tried printing the value of whats passed to
-c
and it returnsNone
Has this changed?