How to populate a ManyToMany Field in Django using a .csv file?
问题 I have 2 models Influencer and Category. Influencer has a many to many relationship with Category.The models look like this: class Category(models.Model): name = models.CharField(max_length=100) def __str__(self): return self.name and class Influencer(models.Model): full_name = models.CharField('Full Name',max_length=100) username = models.CharField('Username',max_length=100,unique=True) photo = models.ImageField(upload_to = 'photos/%Y/%m/%d/',blank=True) location_city = models.CharField(