O'Reilly logo

Sams Teach Yourself Django in 24 Hours by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Using Data from the Database in Views

<feature><title>What You’ll Learn in This Hour</title> <objective>

How to add objects to the SQL database

</objective>
<objective>

How to access objects in the SQL database

</objective>
<objective>

How to modify objects and update the SQL database

</objective>
<objective>

How to perform complex queries on the SQL database

</objective>
<objective>

How to apply data from the database in views

</objective>
</feature>

Django provides a valuable database-abstraction application programming interface (API) that allows you to create, retrieve, update, and delete objects in the database using Python code rather than SQL requests.

The database-abstraction API is automatically added to the models you create in the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required