Django ORM Course | Choice Field Option

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

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

  • @kaushik.aryan04
    @kaushik.aryan04 2 ปีที่แล้ว

    Quality of videos is great Loved it

  • @1412-kaito
    @1412-kaito ปีที่แล้ว

    This is so simple! ❤
    I spent like an hour on stackoverflow and documentation, trying to figure out what I can actually do. Lol

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

    Just loved it!! thank you for such an amazing explanation

  • @jacksonpatrick3454
    @jacksonpatrick3454 2 ปีที่แล้ว +1

    Hey how to render these choice list on frontend? List of choices

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

      Using Django templates, if you create a form automatically it will default to showing you a dropdown selection.

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

      @@veryacademy what about in django rest framework?

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

    Great tutorial, thanks.

  • @Coden69
    @Coden69 2 ปีที่แล้ว +1

    please tell are you alright and when will you come back?

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

      Thank you. I am not going away that is for sure. I started recording last week again, just getting back into the flow of things. I will as I normally do get a few different videos out to get some practice in again and sharpen the workflow then get back on course. I am working towards 3 courses, DRF, ORM and level 2 and Django Core.

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

      @@veryacademy thanks waiting

  • @MartinoxxHD
    @MartinoxxHD 2 ปีที่แล้ว +1

    Hello! Is there a way to inner join two models without foreign key?

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      stackoverflow.com/questions/5771190/why-is-a-primary-foreign-key-relation-required-when-we-can-join-without-it

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

      @@veryacademy Thanks, but I was referring on how to join two models without foreign key using Django ORM. Like creating a query and mapping each related object from the other model

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      @@MartinoxxHD I would stick with a raw SQL query for this. Maybe this will help stackoverflow.com/questions/19590483/django-queryset-join-without-foreignkey

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      If not take a look at
      docs.djangoproject.com/en/4.0/ref/models/expressions/#subquery-expressions
      and
      docs.djangoproject.com/en/4.0/ref/models/expressions/#referencing-columns-from-the-outer-queryset

    • @veryacademy
      @veryacademy  2 ปีที่แล้ว +1

      if not if not
      stackoverflow.com/questions/39291372/django-orm-join-without-foreign-keys-and-without-raw-queries

  • @akshaykolte88
    @akshaykolte88 ปีที่แล้ว

    thanks

  • @Nova-Rift
    @Nova-Rift 2 ปีที่แล้ว

    Thanks!

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

    👍