14. Foreign Keys - Django by Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024
  • In this video, we learn how to use foreign keys to link multiple models together.

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

  • @NaveensinglaYT
    @NaveensinglaYT 3 ปีที่แล้ว

    best video available on the entire planet for foreign keys

  • @realcryptc
    @realcryptc 5 ปีที่แล้ว +3

    "I wish I could spell" I've never related to a coding video more than when I heard that lol. Thanks for your help!

  • @kamdenbolhuis4116
    @kamdenbolhuis4116 7 ปีที่แล้ว

    Could you please continue your bunk it tutorials? You're the best there is at it. You explain it the best.

  • @naveenamresh6339
    @naveenamresh6339 5 ปีที่แล้ว +1

    I love you bro..... I had been breaking my head bcoz of the migration error to set the default value...... Thanks a lot

  • @JustNotWillem
    @JustNotWillem 7 ปีที่แล้ว +2

    OMG. HE IS BACK I CANT BELIVE IT

  • @mysteridesigns3220
    @mysteridesigns3220 7 ปีที่แล้ว +1

    HE'S ALIVEE. IT'S ALMOST BEEN A YEAR.
    I'VE BEEN WAITING SUBBED

  • @nurbekfayziev
    @nurbekfayziev 4 ปีที่แล้ว

    THANK YOU! YOUR EXPLANATION WAS THE BEST FOR ME IN 2019!

  • @nvyago99
    @nvyago99 6 ปีที่แล้ว +1

    Thank you so much! Thanks! That's what I was looking for to do in my practice! So useful! Regards!

  • @hrsh228
    @hrsh228 2 ปีที่แล้ว

    Very helpful, thanks!
    It's a shame that set.all doesn't work in for

  • @amznature
    @amznature 3 ปีที่แล้ว

    You helped me a lot with this video, thank you very much!!!!

  • @RoyalG254
    @RoyalG254 5 ปีที่แล้ว

    Omg you just solved the problem i had thankyou soo much bro 🤗🤗☺☺☺💯💯💯💯💯💯💯💯💯💯

  • @chrisumb
    @chrisumb 7 ปีที่แล้ว

    A spurt of videos I see? Awesome man.

  • @chaitanyasai2458
    @chaitanyasai2458 4 ปีที่แล้ว

    Hi I loved ur way of querying objects. I have a question, can we relate foreign key automatically in the admin panel, Instead of assigning and or changing the categories of item ?

  • @chandrashekharrishidev2627
    @chandrashekharrishidev2627 5 ปีที่แล้ว

    Deep knowledge actually make a sense ✌️👌

  • @srinadhk8071
    @srinadhk8071 5 ปีที่แล้ว

    thank you very much. this tutorial is very useful. Thank you very much.

  • @adityadalvi7884
    @adityadalvi7884 2 ปีที่แล้ว

    Thankyou loved this

  • @fabbae215
    @fabbae215 2 ปีที่แล้ว

    Hello! What if I have more fields than "name" inside class "Category" and I only want to return "name" from class "Category" when I use the __str__ method in class "Item" ? How should I do it?

  • @hemanth6951
    @hemanth6951 6 ปีที่แล้ว +2

    your english is very good best

  • @AndreLuiz-qi3qt
    @AndreLuiz-qi3qt 4 ปีที่แล้ว

    Thank you! My project was saved :)

  • @emmanuel.aggrey
    @emmanuel.aggrey 5 ปีที่แล้ว

    haha just saw your channel and I'm loving it thanks for explaining the relationship in normal terms thanks one's again will love to see more database relationships tutorials thanks but your too fast for me ...😂

  • @alfredstark2320
    @alfredstark2320 4 ปีที่แล้ว

    Thank you Brother, for this concept

  • @Glamify
    @Glamify 7 ปีที่แล้ว

    YAY YOU UPLOADED! AGAIN

  • @senthamilvm1521
    @senthamilvm1521 5 ปีที่แล้ว

    Thanks for this video!! what if I would like to select multiple categories for a single item? I am looking this for a long time for my project. Any help would be helpful. Thanks again! :)

  • @matthewdevelopment3510
    @matthewdevelopment3510 7 ปีที่แล้ว

    Can you do a series making a netty backend system?

  • @richardalcantara3495
    @richardalcantara3495 2 ปีที่แล้ว

    very good

  • @Charizm0
    @Charizm0 7 ปีที่แล้ว

    how do I do the same with class based view while passing multiple contexts.

  • @sanlova496
    @sanlova496 5 ปีที่แล้ว

    Just a tip. Please enlarge your fonts if doeing a video

  • @ezequiasrocha3037
    @ezequiasrocha3037 5 ปีที่แล้ว

    Thank you soooo much!

  • @ivonherms
    @ivonherms 4 ปีที่แล้ว

    The item_set part is not working, and don't know why

  • @sumanbanik3339
    @sumanbanik3339 6 ปีที่แล้ว

    Did awesome with the shell....Ahahahaha

  • @harpalsinhjadeja2568
    @harpalsinhjadeja2568 6 ปีที่แล้ว

    how to display some other models attribute in admin lets say i have customer model and contact model how do i display contact in customer

  • @tommyranger9228
    @tommyranger9228 5 ปีที่แล้ว

    Why mine is asking for on_delete?

  • @JaskaranSingh-ro1cz
    @JaskaranSingh-ro1cz 3 ปีที่แล้ว +1

    class A(models.Model)
    abc = models.CharField(max_length = 10)
    class B(models.Model)
    xyz = models.CharField(max_length = 10)
    a = models.ForeignKey(A, on_delete = models.CASCADE, related_name = "get_a")
    A.objects.all() and get all data from B model also but my i want to implemnt query on A, Not to implement on B ok

  • @hyped2476
    @hyped2476 6 ปีที่แล้ว

    Dope!

  • @subwaysongs9423
    @subwaysongs9423 4 ปีที่แล้ว

    reverse foreign key topic 9:40

  • @pradipyash
    @pradipyash 6 ปีที่แล้ว

    Helpful

  • @Ani_shorts730
    @Ani_shorts730 6 ปีที่แล้ว

    TypeError: int() argument must be a string or a number, not 'datetime.datetime'

  • @thatbeardedvlogger3202
    @thatbeardedvlogger3202 3 ปีที่แล้ว

    can i get github link of this code?

  • @Heffsta02
    @Heffsta02 5 ปีที่แล้ว

    this makes me want to use Pycharm

  • @sushmagowda1057
    @sushmagowda1057 3 ปีที่แล้ว

    Source code pls

  • @EclipticFactions
    @EclipticFactions 7 ปีที่แล้ว

    first

  • @nirmaltom4424
    @nirmaltom4424 4 ปีที่แล้ว

    Bro check your email..

  • @bobvance7293
    @bobvance7293 5 ปีที่แล้ว

    god, I hate how pycharm looks