1.Flask
Flask is indeed very "light", it is indeed a Micro Framework, developers who switch from Django to Flask must be so emotional, unless both are used in depth
Flask is free, flexible, highly scalable, and has a wide choice of third-party libraries. When developing, you can combine your favorite wheels and the most popular and powerful Python libraries
Easy to get started, even if you don't have much web development experience, you can quickly create a website
Great for small sites
Great for developing APIs for web services
There is no pressure to develop large-scale websites, but the code structure needs to be designed by yourself, and the development cost depends on the developer's ability and experience
Equal to or better than Django in all aspects
Django's own or third-party rave reviews will always find similar third-party libraries on Flask
Flask is flexible development, Python masters will basically like Flask, but may have mixed praise for Django
The use of Flask with relational databases is not weaker than that of Django, and its cooperation with NoSQL databases is far better than Django
Flask is more Pythonic than Django and more in line with Python's philosophy
2.Django
Django is too heavy, in addition to the web framework, comes with ORM and template engine, flexibility and freedom are not high enough
Django can develop small applications, but there will always be a feeling of "killing chickens with a knife"
Django's own ORM is very good, and the overall evaluation is slightly higher than SQLAlchemy
Django's own template engine is simple and easy to use, but its power and comprehensive evaluation are slightly lower than Jinja
Django's own ORM also makes Django's coupling with relational databases too high. If you want to use NoSQL data such as MongoDB, you need to select a suitable third-party library, and I always feel that Django+SQL is a natural pairing. Django+NoSQL cut off half of Django's country
Django currently supports unofficial template engines such as Jinja
Django's own database management app received rave reviews
Django is very suitable for enterprise-level website development: fast, reliable, stable
Django is mature, stable and perfect, but compared to Flask, Django's overall ecology is relatively closed
Django is the pioneer of the Python web framework, with many users, the most abundant third-party libraries, and the best Python library. If you can't use it directly in Django, you can definitely find a corresponding port
Django is relatively easy to get started with, the development documentation is detailed and complete, and the relevant information is rich