Django ORM - How to perform an AND query on a database - including Q objects example

preview_player
Показать описание
The Django ORM series covers a range of common functions that you will perform on a database with Django. In this tutorial we take a look at creating AND queries both in native Django statements and using Q objects. In addition we take a look at the SQL that powers the queries and look to see how we can see the performance of our queries.

00:00 Introduction
01:16 Start coding AND queries
08:51 Q Objects AND queries

Code Repository 3

✨ Support us - join us as a very academy member

👍SUBSCRIBE to get more free tutorials, courses and code snippets!

👍👍Follow us on Facebook

👍👍👍Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

I want you to know that I really value your videos and you are helping lots of people to properly understand Django-ORM. Thank You very much :)

aswinbabukaruvally
Автор

You could also use two arguments in the same filter, like:
posts=Student.objects.filter(surname__startswith="B", firstname__startswith="L")

Great video!

MagnusAnand
Автор

Thank you so much for your videos man.

fabiofboful
Автор

6:45 isn't it supposed to return only shaina??

potatoesama