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!".
well, after manager.run() is called the manager.app will be replaced with flask app instance returned by create_app. So you can access
app
with manager.app