Flask: how to catch database error before app is fully initialized?

前端 未结 0 372
终归单人心
终归单人心 2020-11-30 22:04

I am using flask and flask_sqlalchemy for a website, and I would like to be able to catch errors due to the database server being down and return a custom error page . Here

相关标签:
回答
  • 消灭零回复
提交回复
热议问题