django insert data into database code example
Example 1: insert data in django models
from books.models import Publisher
p = Publisher(name='Apress', city='Berkeley')
p.save()
Example 2: add row in db django
new_entry = YourModel(name='me', age='222', about='stackoverflow')
new_entry.save()