FastAPI - SQLModel Relationships and Alpine.js integration

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 15

  • @rainymatch
    @rainymatch 3 місяці тому

    I highly appreaciate your vids! I would be interested in hearing more from you on the reasons why to do things this specific way and not another. Like why to filter on the client side instead of leveraging HTMX which you are using previously in the tutorial. I know it is a complex topic and the answer will always be "it depends", but knowing your reasoning while following your tutorial would indeed be valuable and helpful so as to create/cultivate ones own opinion. Similarly, why using SQLmodel instead of SQLalchemy. I am not really asking for an answer here, just generally suggesting to express more of this reasoning. 🙂 Thanks a lot for the great work!

  • @romanpodkorytov
    @romanpodkorytov Рік тому +4

    Great lesson

  • @alexandrodisla6285
    @alexandrodisla6285 Рік тому +3

    Keep doing these!!!!!

  • @arunima2916
    @arunima2916 Рік тому +3

    Great Job!! Thank you!!

    • @bugbytes3923
      @bugbytes3923  Рік тому

      You are welcome, thanks for commenting!

  • @rje4242
    @rje4242 9 місяців тому

    I'm going to try swapping Alpine.js for Vue.js in this example, the same backend templating tricks should enable Vue.js as well, and give the option of using Vue's component ecosystem.

  • @JustinSpryce
    @JustinSpryce Рік тому +1

    Thank you sir

  • @streamocu2929
    @streamocu2929 10 місяців тому

    so good 🎉

  • @_yurisales
    @_yurisales 5 місяців тому

    Mate, the jsonable_encoder doesn't work here:
    ValueError: [ValueError('dictionary update sequence element #0 has length 5; 2 is required'), TypeError('vars() argument must have __dict__ attribute')]
    I'm trying to find a way to solve it, but for now didn't find anything.

    • @_yurisales
      @_yurisales 5 місяців тому

      I did this workaround and it worked:
      employee_data = [jsonable_encoder({
      "Employee": r[0],
      "Department": r[1]
      }) for r in results]

  • @jmuniz_nyc
    @jmuniz_nyc Рік тому

    These are great videos, but why not just use HTMX to get and swap out the filters with a partial? Is it the network request? Your HTMX video is wonderful.