Now that you have a fully functional administration site to manage your blog's content, it's time to learn how to retrieve information from the database and interact with it. Django comes with a powerful database-abstraction API that lets you create, retrieve, update, and delete objects easily. The Django Object-relational Mapper (ORM) is compatible with MySQL, PostgreSQL, SQLite, and Oracle. Remember that you can define the database of your project by editing the
DATABASES setting in the
settings.py file of your project. Django can work with multiple databases at a time and you can even program database routers that handle the data in any way you like.
Once you have created your data models, Django gives you ...