0
Hello, I want to insert a list of names in a database I created with Django, but I’m not getting it. Is there a method to enter all names at once? (NOTE. I have already performed the makemigrations and migrate commands)
class Usuario(models.Model):
nome = models.CharField(blank=False,max_length = 50)
The list I want to insert is this:
lista = ['André','Carla','João','Maria','Thelma','Ana']
Tens Bulk Insert... https://www.caktusgroup.com/blog/2019/01/09/django-bulk-inserts/
– Ernesto Casanova