Another elegant way to solve this is using the @with_appcontext decorator. from flask.cli import with_appcontext @click.command(name='db-init-data') ...
確定! 回上一頁