insert data from funcrion to django database code example
Example: insert data in django models
from books.models import Publisher
p = Publisher(name='Apress', city='Berkeley')
p.save()
from books.models import Publisher
p = Publisher(name='Apress', city='Berkeley')
p.save()