django,flask选择

若是你确切的知道为何须要细粒度控制的flask,那么选用它web

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

若是还未决定,下面是一些情景(让咱们假设两个框架对于一个团队来讲是未知的):flask

Project What to choose and why
A typical online store Django - there are modules for e-commerce, and ORM possibilities will probably be enough
Dynamic blog Django - examples in the documentation do half the work
On-line media Django - it was created in journalistic realities
A beginner in web development who wants to understand how it is arranged Flask has got a little magic, easy to understand
A beginner in web development who wants to create a useful app as soon as possible Django - a lot of decisions have already been taken, so it is possible to start quicker
Integration with existing complex backend system Flask - it’s just less opinionated
REST-ful API Django - it has Django-Rest-Framework which is great
Complex web applications with ingenious SQL queries Flask - Django-ORM features most likely will not be enough
相关文章
相关标签/搜索