0
I wonder if there’s any way to generate a mass of false data based on my model. I don’t want to have to keep registering one by one to have a reasonable amount of data to work with. For example, suppose I have a phone book template as follows:
from django.db import models
from django.utils.text import slugify
class Agenda(models.Model):
nome = models.CharField(max_length=254)
telefone = models.Charfield(max_length=11)
email = model.EmailChardField(max_lenth=254, blank=True, null=True)
@property
def slug(self):
return slugify(self.nome)
class Meta:
ordering = ('nome',)
def __str__(self):
return self.nome
There is some way to generate a mass of data based on this model. Something else, if there is, how do I consume them?