Django Conditional Expressions / Case() and When() objects

preview_player
Показать описание
In this video, we'll show examples of how to perform Conditional Expressions in Django.

These allow developers to perform IF/ELSE logic within database queries, and get back values based on conditions that are defined using Case and When objects.

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:

▶️ Full Playlist:

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:

#python #django #webdevelopment #database #sql
Рекомендации по теме
Комментарии
Автор

I will be deceiving myself if I don't drop a comment on this. These are advanced topics littered in few books. You have simplified everything.❤

trosgate
Автор

I use to use Pandas for that type of data analysis but the orm seems like a robust way to handle the same logic, thank your good Sr.

juanbetancourt
Автор

I knew these concepts from SQL, now in Django Orm 😀. Thank you very much Master 🙌🏾.

seydinaoumarsamabaly
Автор

Perfect. Simple, clear and well explained. Continue this way. I do not raise very often comment but as previously said by others, it is really great videos on ORM. Many thanks for your time and dedication. You should think about posting training on udemy or others sites, I will definitively support you.

alexisrichard
Автор

Thanks for good explanation! Even though it looks a little complicated, for me it is amazing.
I will be poud if I could to write such a comprehensive code!

anatoliyloboda
Автор

man u actually a hero <3
this playlist helped me a lot thanks.

DjangoNator
Автор

Brilliant content, thank you so much!

oizik
Автор

Great content, plz make a video on django signals.

hack
Автор

THIS ... WAS ... AWESOME. I've yet to use the case and when structures so was. More advanced topics are welcome.

Here's an idea/challenge I was mulling over the other day in regards to Django vs FastApi. Everyone wants fast, modern and async, but I won't give up on the orm or the migrations. Yes I can use SQLAlchemy and Alembic, but it doesn't have the same sleekness.

Can you get the same speed and lightness in Django by using Daphne/Uvicorn ASGI, the async ORM functions, and async functions using Django-Nina as the serializer?

I'm not sure if ninja has implemented pydantic 2.0 yet, but their first full release is in beta 1.

khunjohn
Автор

I watched your videos many times. Very thanks.
I just talked program bug. Not offensive.
I don’t understand why delete my comment.

myoji
Автор

hello?... I'm working with a HTMX file upload form, I want to have a cancel button, on click, the post request will be cancelled, how do I cancel it?...

imanirban