flask vs django code example

Example 1: flask vs django

Django is a full-stack web framework, 
whereas Flask is a micro and lightweight web framework. 
The features provided by Django help developers to build large 
and complex web applications. On the other hand, Flask accelerates development 
of simple web applications by providing the required functionality

Example 2: django createmany

>>> Category.objects.all().count()
2
>>> Category.objects.bulk_create(
    [Category(name="God"),
     Category(name="Demi God"),
     Category(name="Mortal")]
)
[<Category: God>, <Category: Demi God>, <Category: Mortal>]
>>> Category.objects.all().count()
5