if __name__ == "__main__":
main()
Good example (list of tuples):
for item_first, item_second in items:
Model.objects.create(
first=item_first,
second=item_second
)
Bad example (list of strings):
for item in items:
Model.objects.create(
first=item.split()[0],
second=item.split()[1]
)
Good example:
items = ["a", "b", "c"]
for item in items:
Model.objects.create(first=item)
Bad example:
Model.objects.create(first="a")
Model.objects.create(first="b")
Model.objects.create(first="c")