1>>> Category.objects.all().count()
22
3>>> Category.objects.bulk_create(
4 [Category(name="God"),
5 Category(name="Demi God"),
6 Category(name="Mortal")]
7)
8[<Category: God>, <Category: Demi God>, <Category: Mortal>]
9>>> Category.objects.all().count()
105
11
1Flask is a lightweight framework, while Django is a huge framework,
2with extra functionality. Django is better for large projects,
3while Flask is better for smaller and simpler projects.
1Django is a full-stack web framework,
2whereas Flask is a micro and lightweight web framework.
3The features provided by Django help developers to build large
4and complex web applications. On the other hand, Flask accelerates development
5of simple web applications by providing the required functionality
6