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-orm-mastery
✨ Support us - join us as a very academy member
https://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w/join
👍SUBSCRIBE to get more free tutorials, courses and code snippets!
http://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w?sub_confirmation=1
👍👍Follow us on Facebook
https://www.facebook.com/Veryacademycom-113232103670580/
👍👍👍Follow use on Twitter:
https://twitter.com/VeryAcademy