In this section we are having the first touch with querysets, we will learn more about them in the future videos. At the beginning of the next section we will learn how to generate dummy data so that we can practice writing querysets more in the later parts of the course. For now I'm leaving you with a short read on Django ORM and queryset methods:


ORM is a tool that allows developers to interact with a database using an object-oriented programming language (like Python in Django) instead of writing SQL queries directly. The ORM maps database tables to classes and database rows to objects, making it easier for developers to create, read, update, and delete data without having to worry about the underlying SQL. This allows developers to focus on the application logic rather than the database details, making development faster.


QuerySets are a way to retrieve and manipulate data from a database with Django's ORM to avoid writing SQL queries. Most popular queryset methods are: