Live development on Twitch (streaming) - vk.cc/awe0iULinkedIn - https://www.linkedin.com/in/alex-cher/
Live development on Twitch (streaming) - vk.cc/awe0iULinkedIn - https://www.linkedin.com/in/alex-cher/
Live development on Twitch (streaming) - vk.cc/awe0iULinkedIn - https://www.linkedin.com/in/alex-cher/ Model inheritance in Django works almost identically to the way normal class inheritance works in Python, but the basics at the beginning of the page should still be followed. That means the base class should subclass django.db.models.Model.The only decision you have to make is whether you want the parent models to be models in their own right (with their own database tables), or if the parents are just holders of common information that will only be visible through the child models.There are three styles of inheritance that are possible in Django.Often, you will just want to use the parent class to hold information that you don’t want to have to type out for each child model. This class isn’t going to ever be used in isolation, so Abstract base classes are what you’re after.If you’re subclassing an existing model (perhaps something from another application entirely) and want each model to have its own database table, Multi-table inheritance is the way to go.Finally, if you only want to modify the Python-level behavior of a model, without changing the models fields in any way, you can use Proxy models.Apple Podcasts - https://link.chtbl.com/Apple_PodcastsSpotify - https://link.chtbl.com/8_-EyCh1Google Podcasts - https://link.chtbl.com/kQr7HKmaCastbox - https://link.chtbl.com/rVlRcBZNStreamhttps://www.twitch.tv/devrootithttps://mixer.com/devrootithttps://www.youtube.com/channel/UChhaw-YRU6HGIsVXfueIh-whttps://docs.djangoproject.com/en/3.0/topics/db/models/#model-inheritance
Is Django a good choice for SAAS solution (users subdomains handling, scalability, multidatabase, speed)?Live development on Twitch (streaming) - vk.cc/awe0iULinkedIn - https://www.linkedin.com/in/alex-cher/https://www.quora.com/Is-Django-a-good-choice-for-SAAS-solution-users-subdomains-handling-scalability-multidatabase-speed
View 37 more appearances
Share Profile
Get appearance alerts
Subscribe to receive notifications by email whenever this creator appears as a guest on an episode.

Subscribe to receive notifications by email whenever this creator appears as a guest on an episode.

Are you Alex? Verify and edit this page to your liking.

Recommend This Creator

Recommendation sent

Join Podchaser to...

  • Rate podcasts and episodes
  • Follow podcasts and creators
  • Create podcast and episode lists
  • & much more

Creator Details

Birthdate
Aug 30th, 1998
Location
Moscow, Москва, Russia
Episode Count
41
Podcast Count
1
Total Airtime
3 hours, 38 minutes