add to database django code example
Example 1: django shell
python manage.py shell
Example 2: insert data in django models
from books.models import Publisher
p = Publisher(name='Apress', city='Berkeley')
p.save()
python manage.py shell
from books.models import Publisher
p = Publisher(name='Apress', city='Berkeley')
p.save()