I have a model .
class ConnectCategory(models.Model):
name = models.CharField(max_length = 50)
description = models.TextField(max_length = 500, blank=True)
def __unicode__(self):
return self.name
I want to prepopulate it every time I do syncdb.(Like a initialize function). Is there any way to do it in the model it self. I am new to django , so any pointers will be very helpful.
No.
“Providing initial data for models”