django,flask选择

本文对比了Django与Flask两种Web框架的特点及适用场景。Django因其丰富的内置功能和快速开发能力适合初学者及复杂应用开发;Flask则以轻量级和灵活性见长,适用于对底层细节有较高需求的项目。

如果你确切的知道为什么需要细粒度控制的flask,那么选用它

否则,Django会为您节省大量的工时以其合理的默认值和大量的现成的解决方案

如果还未决定,下面是一些情景(让我们假设两个框架对于一个团队来说是未知的):

ProjectWhat to choose and why
A typical online storeDjango - there are modules for e-commerce, and ORM possibilities will probably be enough
Dynamic blogDjango - examples in the documentation do half the work
On-line mediaDjango - it was created in journalistic realities
A beginner in web development who wants to understand how it is arrangedFlask has got a little magic, easy to understand
A beginner in web development who wants to create a useful app as soon as possibleDjango - a lot of decisions have already been taken, so it is possible to start quicker
Integration with existing complex backend systemFlask - it’s just less opinionated
REST-ful APIDjango - it has Django-Rest-Framework which is great
Complex web applications with ingenious SQL queriesFlask - Django-ORM features most likely will not be enough

 

转载于:https://my.oschina.net/u/914655/blog/1589380

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值