Django OR query

  Рет қаралды 41,650

Very Academy

Very Academy

Күн бұрын

Пікірлер: 48
@wannabedevo7
@wannabedevo7 4 жыл бұрын
Thanks, just thanks! I really love and enjoy this channel. You're possibly the only creator with this quality level serving really in-depth knowledge about django. I Would love more videos regarding DRF and Deployment, and freecodecamp is also a great idea.
@veryacademy
@veryacademy 4 жыл бұрын
Thank you! - Yeah DRF I haven't lost focus on that promise. I know I seem to be moving away from it - I most definitely am not. Time is never on my side - but it will continue shortly.
@heyrmi
@heyrmi 3 жыл бұрын
I came here for Django ORM. Now I am Hooked to your channel.
@veryacademy
@veryacademy 3 жыл бұрын
Hi Rahul! Thank you, and long may it continue! 👍
@chetty1212
@chetty1212 2 жыл бұрын
you never fail to impress. i am implementing this django ORM SQL logic into my own project works amazing. thanks
@veryacademy
@veryacademy 2 жыл бұрын
Great to hear!
@RafathBinZafarAuvee
@RafathBinZafarAuvee 3 жыл бұрын
This channel is under rated
@veryacademy
@veryacademy 3 жыл бұрын
👍 Thank you
@oliver1231033
@oliver1231033 4 жыл бұрын
your tutorials are NEXT LEVEL! keep up the great work!
@veryacademy
@veryacademy 4 жыл бұрын
Thanks, will do!
@djangodeveloper07
@djangodeveloper07 3 жыл бұрын
you have solid knowledge which we can see through your videos and teaching method. just new to your channel. Subscribed and following for your next videos. for now following your other playlists to get more knowledge about Django
@veryacademy
@veryacademy 3 жыл бұрын
Welcome aboard! Thank you!
@rangabharath4253
@rangabharath4253 4 жыл бұрын
awesome. Everytime i watch your videos i will learn a new thing. Today i learned about sqlite extension in vscode. Previously about docker extension. Those are really very useful to explore data from vs code itself. Tq so much. You should definitely do a video on freecodecamp, so everyone will know about your awesome channnel. All the best :)
@veryacademy
@veryacademy 4 жыл бұрын
Hi Ranga - thanks for the suggestion about freecodecamp - once I have everything in order and the plan is fully established here on KZbin I will start to actively look for these types of opportunities. If you could for the time being add a few links here and there on social media - that would be most appreciated. I do actively try and add something new in each video 👍
@rangabharath4253
@rangabharath4253 4 жыл бұрын
@@veryacademy Sure. Cheers :)
@Oda3908
@Oda3908 4 жыл бұрын
Great tutorial! I am using debug toolbar to show the detail of queries but have not idea where does that info come from. BTW django-extensions is also a good tool to enhance the Django shell by running python manage.py shell_plus, which will import all existed models, Q, F, aggregate, and many useful functions on your behalf when launched, and use an ipython shell, quite recommendable.
@tbaror
@tbaror 3 жыл бұрын
Like all your tutorials Gold value, thank you
@veryacademy
@veryacademy 3 жыл бұрын
Glad you like them!
@Ameyiscool
@Ameyiscool 7 ай бұрын
Why isn't the or statement just returning the first query ??? Why is it returning both?
@rajughorai3909
@rajughorai3909 4 жыл бұрын
really enjoying your content. do have any plan doing django cache.
@veryacademy
@veryacademy 4 жыл бұрын
I am bumping it up the list - so many others have now asked for it.
@amjadsaleem1270
@amjadsaleem1270 7 ай бұрын
So for me print(connection.queries) returns an empty list what am I missing?
@vamsikrishnaaliveli938
@vamsikrishnaaliveli938 2 жыл бұрын
Hello bro i have written code : "print(connections.queries) " but it print empty list what i have to do
@veryacademy
@veryacademy 2 жыл бұрын
Hey, hmmm does this help docs.djangoproject.com/en/4.0/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running
@vamsikrishnaaliveli938
@vamsikrishnaaliveli938 2 жыл бұрын
@@veryacademy Hi !!!!, I put the " DEBUG=True " but i get the same result
@jhutchtor1
@jhutchtor1 2 жыл бұрын
Any chance this can be updated to Django 4 as it has changed and this no longer works.
@veryacademy
@veryacademy 2 жыл бұрын
Noted, thank you.
@shivaramsrikanth
@shivaramsrikanth 4 жыл бұрын
sir, if I want to activate this query from the webpage, how will I do it? What would be the url?
@veryacademy
@veryacademy 4 жыл бұрын
Hey, Shivaram. Sounds like you are new to Django, it is a long explanation - however take a look at this beginners series kzbin.info/aero/PLOLrQ9Pn6cawWd-5UZM6CIm0uqFXeBcTd
@samiulsalehin1560
@samiulsalehin1560 3 жыл бұрын
How to find which importables can be imported from django.db?
@sanketnawale1938
@sanketnawale1938 3 жыл бұрын
print(connection.query) is returning as empty list. Any suggestion?
@veryacademy
@veryacademy 3 жыл бұрын
Would need to see a little more code
@sanketnawale1938
@sanketnawale1938 3 жыл бұрын
@@veryacademy Well, I found out the issue but didn't understand the concept behind it. It return empty string when I do the following print statements: print(posts.query) print(connection.queries) It return the output when I also add: print(post).
@rare7647
@rare7647 4 ай бұрын
amazing
@biplob9764
@biplob9764 3 жыл бұрын
Which version of Django are you using?
@veryacademy
@veryacademy 3 жыл бұрын
Hi Bip, at the start of the tutorials it lists some of the important version numbers. Also, in the project repositories, normally you will see a file called requirements.txt - this gives you the version of all packages installed.
@biplob9764
@biplob9764 3 жыл бұрын
@@veryacademy sorry I don't see any requirements file. can you please check this
@veryacademy
@veryacademy 3 жыл бұрын
@@biplob9764 Sorry Bip - that is an older tutorial! I didnt notice that! It is Django 3.1
@biplob9764
@biplob9764 3 жыл бұрын
@@veryacademy Thank you though. You are awesome!
@aniketanuse5694
@aniketanuse5694 5 ай бұрын
How to enable | and query function
@akshattrivedi4933
@akshattrivedi4933 3 жыл бұрын
how to get an option to open database in pycharm?
@veryacademy
@veryacademy 3 жыл бұрын
www.jetbrains.com/help/pycharm/database-tool-window.html let me know if this helps
@akshattrivedi4933
@akshattrivedi4933 3 жыл бұрын
@@veryacademy sorry but this didn't help
@akshattrivedi4933
@akshattrivedi4933 3 жыл бұрын
@@veryacademy there is no such an option of database in tool windows of view , the only options relates to the database are DB browser and DB execution console
@akshattrivedi4933
@akshattrivedi4933 3 жыл бұрын
@@veryacademy waiting for your reply sir
@MagnusAnand
@MagnusAnand 3 жыл бұрын
QUESTION: What's the benefit of using a Q object???
@veryacademy
@veryacademy 3 жыл бұрын
Hi Guz, You can compose statements of arbitrary complexity by combining Q objects with the & and | operators and use parenthetical grouping. Also, Q objects can be negated using the ~ operator, allowing for combined lookups that combine both a normal query and a negated (NOT) query. docs.djangoproject.com/en/3.1/topics/db/queries/ books.agiliq.com/projects/django-orm-cookbook/en/latest/query_relatedtool.html riptutorial.com/django/example/4565/advanced-queries-with-q-objects bradmontgomery.net/blog/adding-q-objects-in-django/
@MagnusAnand
@MagnusAnand 3 жыл бұрын
@@veryacademy thanks
Django Search
1:31:18
Very Academy
Рет қаралды 20 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 115 М.
SQLAlchemy Turns Python Objects Into Database Entries
22:23
NeuralNine
Рет қаралды 187 М.
How Model Queries Work in Django
27:47
Pretty Printed
Рет қаралды 95 М.
Python Django Inheritance Optimisation Exercise
52:56
Very Academy
Рет қаралды 13 М.
Django Multiple Database Setup Ex1
32:52
Very Academy
Рет қаралды 38 М.
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 95 М.