search

Home  >  Q&A  >  body text

python - 数据库与返回 json 之间的实现

新手,打算做一个 C/S 的小软件,本地存程序的数据难以及时更新,打算用云主机的数据库存数据,做一个 API 返回 JSON ,在数据库和返回 JSON 数据之间应该如何实现?谷歌搜索到 django 和 flask ,这两个如何?还有其他的选项吗?
谢谢大家!

ringa_leeringa_lee2781 days ago560

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-18 10:25:16

    Use restful API
    Look at
    https://en.wikipedia.org/wiki...
    and
    http://www.django-rest-framew...

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 10:25:16

    You can use both Django and Flask. Django is large and comprehensive, and the documentation is very detailed. Cooperate with django-rest-framework to provide restful interface
    flask is small and light, and there are many flask plug-ins, so it is very nice to use together. For example, Flask-RESTful. For more plug-ins, see http://flask.pocoo.org/extens...

    reply
    0
  • Cancelreply