Python Django Inheritance Optimisation Exercise

preview_player
Показать описание
In this Python Django tutorial we work through a set of examples to develop a better understanding of Django model inheritance. We try and answer the question of how to design a product table where we may need to have many types of product thus needing to create multiple tables.

00.00 Scenario and problem statement
02:07 Introduction
02:41 Solution 1 - Concrete Classes
06:01 Solution 2 - Multi-table Inheritance
23:14 Solution 3 - Abstract Models
42:50 Solution 4 - django-polymorphic

Code Repository 20

✨ Support us - join us as a very academy member

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

👍👍Follow us on Facebook

👍👍👍Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

I found this amazing channel when I was feeling low with Django and now am happy.Thanks please continue this series and also manage your playlists cause its hard to follow through them .
Please also teach us about DRF

rahulsaha
Автор

Amazing 🔥✅
This is the only channel with such videos on django👏

AcademyOmen
Автор

Just joined your channel based on this tutorial. I've been learning Django from mostly your channel. Would love to see more in depth applications of model inheritance, database optimization, etc. Currently following your django ecommerce course.

julienboudreau
Автор

You are super cool sir thank you so much...may you soon get millions subscribers that you deserve 😊 you making my life so much easy for learning django and I don’t have to pay for these awesome tutorials!

CoCo-yzjh
Автор

Haven't started watching yet but thanks in advance :-)

SuperFreakyMad
Автор

I have learn better ways of doing things in django from you... I have had this concern on my ecommerce project... Thanks a lot.. I appreciate this... Would be nice if this is added to the ecommerce series..

bellosegun
Автор

Super helpful, thanks for making this!

ManStartup
Автор

Thanks for the content.
It would be great if you would create video covering all model meta options like indexes, unique_together, etc.

kopilagaire
Автор

Thanks for this awesome video!! Could you tell me about the toolbar you were using starting 15:27 min ?

LavYash
Автор

I prefer the multi-table Inheritance... Looks simpler and more readable..

bellosegun
Автор

Can you do a video on advanced user authentication worthy of production plz

alkfalfnsflgjslfj
Автор

Hi
Would a json field work in this scenario?
And what are the benefits and disadvantages

ThukuWakogi
Автор

Hello, I have a doubt, which is more efficient between the two, products= Product.objects.all(), products_ = or while quering? like in terms of the number of queries in db. Thanks :)

createlifejr
welcome to shbcf.ru