47 - Model Managers & Custom QuerySets for Search - Python & Django 3.2 Tutorial Series

preview_player
Показать описание
47 - Model Managers & Custom QuerySets for Search - Python & Django 3.2 Tutorial Series

Try Django 3.2 is a series to teach you the fundamentals of creating web applications with Python & Django by building a real project step-by-step.

Рекомендации по теме
Комментарии
Автор

I never ever thought that search query could be this much robust. This is really insane believe me. Sir, You really worked hard for Django.

ashir
Автор

Every time I think of a comment to put here for Justin, nothing comes to my mind first except 'QUALITY', well done Bro, We love you { from Egypt }.

eagleofsharm
Автор

Love your explanations bro!!, you really make it easy to understand for me.

alexurassa
Автор

What a great work on this course content, bravo

maamounhajnajeeb
Автор

For reference search method: Mode.objects.search() is not something which is available by default in django, hence this is a new custom queryset method we are creating from zero. To create this we can do either:
1. custom Manager
2. Custom QuerySet

Only difference is how they are linked to the model:
1. objects = ArticleCustomManager()
2. objects =

FYI: objects is the default name that we used: remember Article.objects.<queryset>

batman_
Автор

I see, so this overriding objects like overriding save method.

second
Автор

At 4:20 line 15. In witch cases the query is None and in which cases the query is an empty string?

russomario
Автор

i think it is unnecessary implementing that complex queryset for searching a simple title or content in a blog.
you make a lot of functions for handling the same data. I (personally) think it is not optimus way to program a search function.
Please correct me if i am wrong.

techfinpro
Автор

Hey Justin
Please use dark mode in browser as well. Please

IshwarJangid
welcome to shbcf.ru