Flask: How to manage different environment databases?

后端 未结 5 1983
青春惊慌失措
青春惊慌失措 2020-12-13 11:27

I am working on an app which looks similar to

facebook/
         __init__.py
         feed/
             __init__.py
             business.py
             vi         


        
5条回答
  •  旧时难觅i
    2020-12-13 12:04

    Flask has something called Instance folders, which makes it possible to have different possible configurations and load them accordingly.

提交回复
热议问题