Django ORM - How to perform a NOT query on a database - including Q Objects

Published: 20 October 2020
on channel: Very Academy
10,452
219

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 NOT queries or Django exclude as it is known on multiple select statements. We look at a basic example of exclude as well as using Q objects to build a NOT query. 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:31 Starting to code the NOT example
04:58 Discussion on using Django operators (more than/less than)
08:01 Q Object example

Code Repository 5
https://github.com/veryacademy/django...

✨ Support us - join us as a very academy member
   / @veryacademy  

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

👍👍Follow us on Facebook
  / veryacademycom-113232103670580  

👍👍👍Follow use on Twitter:
  / veryacademy  


Watch video Django ORM - How to perform a NOT query on a database - including Q Objects online without registration, duration hours minute second in high quality. This video was added by user Very Academy 20 October 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,452 once and liked it 219 people.