0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

テーブル作る初期設定

Last updated at Posted at 2025-05-28
動かすファイル名指定(プロジェクトフォルダがあるルートディレクトリで)
export FLASK_APP=run_sample.py

flask db init

flask db migrate -m "initial migration"

flask db upgrade
インストされてる?
pip list flask-Migrate

init.pyにこの設定ある?

migrate = Migrate()

def create_app(test_config=None):

    if test_config:
        app.config.from_mapping(test_config)

    # 初期化
    migrate.init_app(app, db)
    bcrypt.init_app(app)
    login_manager.init_app(app)

route.pyにこの設定ある?

main = Blueprint('main', __name__)

隠しDBを見つけ、消す方法

find . -name "test.db"

rm -rf ファイル名
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?