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
相關文章
相關標籤/搜索