What is the appropriate way to open and close a Mongo/Pymongo session on each request?

后端 未结 0 874
南旧
南旧 2021-01-31 01:54

Using Flask and Pymongo server. Would like to open and close the database on each get/post request to refresh db. But adding all the code to open and close in each route does no

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