python - 数据库与返回 json 之间的实现
ringa_lee
ringa_lee 2017-04-18 10:23:16
0
2
547

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

ringa_lee
ringa_lee

ringa_lee

reply all(2)
刘奇

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

巴扎黑

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...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!