Flash management command-line tool. I use flash cli
Then, using any command related to flash DB will cause the problem of keyerror “migrate”
No solution was found on the Internet
Therefore, I started to think step by step and finally determined that the biggest problem without the migrate command was that when I executed the flash DB XX command, I didn’t find the corresponding app. The command line didn’t know which app I wanted to run, so I didn’t find the app associated with DB, that is, I didn’t find it
Migrate = migrate (APP = app, DB = dB), so an error is reported
Therefore, to use the flash command, you first need to declare flash_ APP
That is, enter in terminal
export FLASK_APP=The name of the app you want to run
=Do not leave a space before or after, otherwise bad assignment will be reported
Then enter flash DB migrate again and it will be normal
Read More:
- [Solved] flash initializate database error: Keyerror: ‘migrate’
- [Solved] raise KeyError(key) from err KeyError: ‘Dates‘
- [Solved] flask db migrate execute error: ERROR [flask_migrate] Error: Can‘t locate revision identified by ‘8d1ad59dc71a‘
- Python: Django exception when executing migrate operation: django.db.utils.OperationalError: (1051, “Unknown table’xxx’”)
- Python Pandas Error: KeyError: 0 [How to Solve]
- numpy.concatenate() 253rd; 38169Keyerror: 0 [How to Solve]
- Python quote error: * * * keyerror: u ‘\ uxx’ [How to Solve]
- [Solved] D455 Depth Camera Error: keyerror: ‘frame_ device_ t‘
- Error in sitecustomize set PYTHONVERBOSE for traceback KeyError: ‘PYTHONPATH’
- [Solved] PyTorch Lightning Error: KeyError: ‘hidden_states‘
- How to Solve Automatic error keyerror:***‘
- [Solved] KeyError: ‘Transformer/encoderblock_0/MultiHeadDotProductAttention_1/query\\kernel is
- KeyError: b ‘TEST’ problem in python3 conversion from csn-rcnn code
- odoo Error: KeyError:‘ir.http‘ [How to Solve]
- How to Fix keyerror in Python dictionary lookup
- [Solved] pytorch Error: KeyError: tensor(2, device=‘cuda:0‘)
- [Solved] fit function error: KeyError: ‘squared_error‘
- ModuleNotFoundError: No module named ‘tensorflow.python’ And the pits encountered after installation
- RuntimeError: CUDA error: an illegal memory access was encountered