Create a Dependent Select Field With Flask-WTF and HTMX

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ย. 2024
  • In this video I'll show you how to create drop downs that depend on each on other drop downs with Flask-WTF and HTMX.
    Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
    Watch my HTMX video here: • Dynamic Web Pages With...
    Get the code I wrote in this video: prettyprinted....
    Twitter: / pretty_printed
    Github: github.com/pre...

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

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

    Interesting, thank you so much. Keep it coming.

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

    Great video Anthony

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

    I didn't know you can pass a dictionary for wtforms. I used to manually write the input html with the wtform names and ids when I wanted to use htmx in my flask project. Thanks! This is going to simplify my code.

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

    love this combination. great video

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

    Thank you for the video, very informative. I've been trying to replicate it with a QuerySelectMultipleField with not much success. Can this aproach be used too or I would need to use JS?

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

    great video!!
    so, how could i create one or more dependent dropdowns based on a dataframe? id like to filter the second based on first, filter the third based on second... do you know how do that?

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

    Cool video.
    Is there any new way to build a blog with flask in 2023 or is one of your older videos still viable for this?

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

    Thank you for your amazing work. I have tried to implent this in my learning project but it is not repsonding to the change on the first select to dynamically populate the second select field. It is displaying a 404 response . What should I look at please

  • @user-xu7jz4li7e
    @user-xu7jz4li7e ปีที่แล้ว

    Django + HTMX please!

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

      I'll create a Django version of this video in a couple of days. Also, I'll make other videos with Django and HTMX.

    • @user-xu7jz4li7e
      @user-xu7jz4li7e ปีที่แล้ว

      @@prettyprinted Thanks Anthony! Great content as always. Looking forward to more Django + HTMX or Alpine JS. These seem to be the best combo for beginner starting from the Python side, and have yet to build up enough JS skills, to assemble a reasonable looking front-end together.

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

    now you use db.relationship on both, no back_ref here, is it a new way to do one-to-many?