"RuntimeError: application not registered on the db instance and no applicationbound
To the current context ", "
Could you tell me what causes and how to solve?
CodePudding user response:
With the app. The context ()CodePudding user response:
If haven't solve stick source, an error writing should be not added to the context stackCodePudding user response:
I am in the shell of the operation, the app in the shell and db registration:CTX={" db ": db}
CTX. Update (current_app make_shell_context ())
It is not the mistakes if you do not use multithreading, but using multithreading is wrong, what is reason, do not allow the multithreaded operations app flask?
CodePudding user response: