flask-script
flask-script copied to clipboard
Sub-manager example
Can you show at least one example of sub-manager that I can put inside manage.py from outside module?
- https://github.com/miguelgrinberg/Flask-Migrate/blob/ee32ae4db5f406508dac0b93f1dacb2b8d05a5f9/flask_migrate/init.py#L49
- https://bitbucket.org/davidism/flask-alembic/src/d5a87d6ce3507740b22710e931ebf4edfd412c2a/flask_alembic/cli/script.py?at=default#cl-12
manager.add_command('db', submanager)