Generic Foreign Keys in Django / GenericForeignKey / GenericRelation

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • This video will look at generic foreign keys in Django, which allow you to hook up a model to any other model in your application.
    We'll see how to define and query GenericForeignKey instances, and how to define GenericRelation fields on the reverse side of the relationship.
    ☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
    To support the channel and encourage new videos, please consider buying me a coffee here:
    ko-fi.com/bugb...
    ▶️ Full Playlist:
    • Django ORM Deep Dive
    𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
    📖 Blog: bugbytes.io/po...
    👾 Github: github.com/bug...
    🐦 Twitter: / bugbytesio
    📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
    Generic Inlines in Admin: docs.djangopro...
    Permissions and Authorisation: docs.djangopro...
    #python #django #webdevelopment #database #sql

ความคิดเห็น • 38

  • @bugbytes3923
    @bugbytes3923  5 หลายเดือนก่อน +1

    ORM Playlist link: th-cam.com/video/EsBqIZmR2Uc/w-d-xo.html

  • @leamon9024
    @leamon9024 26 วันที่ผ่านมา

    Nice! Looking forward to the permission related videos.

  • @kushagra2255
    @kushagra2255 4 หลายเดือนก่อน +1

    Great content, please do a video on internals of permission as well. That would be great.

  • @sto3359
    @sto3359 9 หลายเดือนก่อน +1

    Thank you! This really cleared up my knowledge on this subject.

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks a lot, glad to hear that!

  • @safadyrn
    @safadyrn 9 หลายเดือนก่อน

    Great video as always! For one project I had all those null fields because i want to use comments for movies, tv series and lists etc. This is much much cleaner.

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks a lot!

  • @XavierLarrea
    @XavierLarrea 9 หลายเดือนก่อน

    Great video. Thanks! Already passed half the way from 10K to 20k subscribers... Congratulations!

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks a lot, well noticed! Thanks for the support!

  • @AmoahDevLabs
    @AmoahDevLabs 9 หลายเดือนก่อน

    Great continuation. Thanks very much.

  • @hack727
    @hack727 5 หลายเดือนก่อน

    do one on permissions and authorization too

  • @khalilbenmeziane8836
    @khalilbenmeziane8836 9 หลายเดือนก่อน

    thank you and more django video please

  • @abdelrhmanmamdouh2735
    @abdelrhmanmamdouh2735 4 หลายเดือนก่อน

    Great Content can you make video for permission system in django thanks :)

  • @wazidmalik6824
    @wazidmalik6824 9 หลายเดือนก่อน

    If you wish to improve your Django understanding, subscribe to this channel. Thank you very much.

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks a lot !

  • @serychristianrenaud
    @serychristianrenaud 9 หลายเดือนก่อน +1

    Thanks

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks for commenting!

  • @Developer_python_
    @Developer_python_ หลายเดือนก่อน

    But you didn"t say anything about on_delete doesn't"t work so we need to use signals to delete the related models

  • @SSH5000
    @SSH5000 9 หลายเดือนก่อน +1

    well explained. though it is a little bit advanced for me :-)

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks! This concept of generic FKs/ContentTypes took a while to grasp for me, so no worries if it seems advanced.

  • @aymensoudani2110
    @aymensoudani2110 9 หลายเดือนก่อน

    Thank you sir

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks for watching!

  • @aashayamballi
    @aashayamballi 9 หลายเดือนก่อน

    Thank you

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks a lot!

  • @Patrick-hb9dbj
    @Patrick-hb9dbj 6 หลายเดือนก่อน

    How can i create a hyperlinked related field for generic foreign key?

  • @maheryagub
    @maheryagub 9 หลายเดือนก่อน

    GenericForeignKey or django-polymorphic or InheritanceManager? what do you suggest?

  • @maheryagub
    @maheryagub 9 หลายเดือนก่อน

    love it.

    • @bugbytes3923
      @bugbytes3923  9 หลายเดือนก่อน

      Thanks a lot!

  • @frameff9073
    @frameff9073 9 หลายเดือนก่อน

    ❤ Thank

  • @Developer_python_
    @Developer_python_ 6 หลายเดือนก่อน

    cool

  • @Yarkanlaki
    @Yarkanlaki 4 หลายเดือนก่อน

    ،😮😮😮😮😮😮😮😮 Thank u

    • @bugbytes3923
      @bugbytes3923  4 หลายเดือนก่อน

      Thanks a lot!

  • @gowtham0071000
    @gowtham0071000 8 หลายเดือนก่อน

    do one on permissions and authorization too