Create a Dependent Select Field With Flask-WTF and HTMX

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 15

  • @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.

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

    Interesting, thank you so much. Keep it coming.

  • @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

  • @rrafaelm6
    @rrafaelm6 8 місяців тому

    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?

  • @alexportugal3986
    @alexportugal3986 8 місяців тому

    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?

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

    love this combination. great video

  • @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?

  • @立法院很忙
    @立法院很忙 Рік тому

    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.

    • @立法院很忙
      @立法院很忙 Рік тому

      @@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?