Django Dynamic Forms Tutorial with Htmx

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

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

  • @carewen3969
    @carewen3969 3 ปีที่แล้ว +6

    As soon as I saw this video I just knew I had to try it out. I've just gotten through my first conversion from an existing Django Inline Formset to this approach of forms with htmx. Simply put...there is NO comparison. This approach is infinitely better! Great presentations. Thanks for the research and sharing. This is the holy-grail of forms...repeating forms. :)

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

    Thanks for creating this. I helped a lot in my implementation.
    Just few things to add:
    - I couldn't see you adding anything to the book_form.html, the first time it worked.
    - the blog is not up to mark, neither with the video or with the git code. in the htmx segment, it mentions about "partials/book_form.html" in views, but it doesn't explains what that is or what to add to it. And in the next step, it magically starts working.

  •  3 ปีที่แล้ว +1

    Well done! I do not even know such a thing htmx. Thank you.

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

    Apparently at 26:00 if no form is showing up, it's because you need to add some lines in the book_form.html which would render the form from the context, you could find those lines at 31.20

    • @drustan6890
      @drustan6890 9 หลายเดือนก่อน

      exactly, seems like that part got cut off or something

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

    Thank you for tutorial! Very simple, very clear, straight to the point.

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

    I can't thank you enough for what you are doing.
    Thank you from my Hart

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

    Thank you for very comprehensive video on htmx, can you please guide on how multiple forms can be added with a single submit button using htmx?

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

    I Will try to use it instead of react.js with Dj in future projects, thanks for the video

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

    Thank you for such a great video. Just discovering Htmx.

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

    Amazing video. Some hopefully constructive critique. Would it be a good idea to include timestamps? That way if someone just wants to see how you do 'x', they don't have to sit down and watch setting uo a django project from scratch. But I do want to say this is well explained! Thank you.

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

      18:10 is when htmx is introduced

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

      Hey. I should have added timestamps but forgot. Thanks for the reminder!

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

    Thank you so much you really help my django skills

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

    Para los que al minuto 26:06 no les funciona el agregar un nuevo libro, es porque en la vista parcial de book_form.html no muestra que agrega el contenido del formulario. En el 31:39 pueden observarlo si desean.

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

    Thank you so much for this.

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

    WTF. Amazing tutorial and content. Subbed!

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

    this's exactly what I'm looking for....

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

    Thank you so much I needed this xD ♥

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

    that was awesome! keep it up!

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

    Amazing material as always.
    sir can u plz start a series of kafka integration with django

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

    Thank you very much, you save me.

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

    Superb, Bro!!!!

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

    Thanks for the awesome content

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

    Hi, I have been watching your videos since long ago and to be very honest, I really love them. I have a request from you, can you make a tutorial on double entry accountancy system using Django?
    Thanks a lot for this and all the other videos you have.

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

    Such a great video

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

    Many thanks!

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

    i don't know how to thank u ❤❤

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

    Thank you very much

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

    Awesome MaTT

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

    Great video as usual, btw how is your admin dark themed ?

  • @aafan.kuware
    @aafan.kuware 8 หลายเดือนก่อน

    4:26 here in admin panel it is one save button to save all the instance and in your implemented view there are multiple forms with their save button.

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

    Thank you for the video. Can you please do one a Django bootstrap modal form with htmx?

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

    Your blog website is super cool specially the scrolling thing. How can we make supper cool blog website or blog page like yours , if you show us that would be a great appreciations

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

    Hello sir thank u for ur efforts. Can u please do a tutorial about django and ajax .thank u

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

    Very nice !!! but how would you do for example if you want to create the author, and then create the books all on the same page?

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

    thank you

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

    Thanks for the great tutorial. Could you also show us how to add books with a new author in one go? Thank you

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

    I get lost the moment I add those empty forms by clicking add form. When I fill out the form and try to submit, I get a not found create book, 404 error.

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

    nice job

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

    How would you update the record if you are using a custom slug field in Author and used it in URL ? Great video :)

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

    is this equivalent to avoid using static ? and csrf token above form which sometimes causes problem to talk to backend ?

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

    Any chance you will do one on one training

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

    Hey!!!! When do you come back??? :)))))

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

    Hi, is it possible to share a tutorial for nested form using Django & HTMX, please...

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

    Awesome skills. Would have preferred a grid editor look, but awesome none the less.

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

    When I get to 26.04 where you click Submit and have inlines appear every time you hit submit, I get nothing appearing but also no error message. All I see in terminal is [16/Apr/2023 21:20:30] "GET /htmx/book-form/ HTTP/1.1" 200 0. Nothing shows up in console. Any idea what's suggestions on something to check?

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

    thank you its really help full , htmx amazing ,, pleas can you make a like/dislik button django with htmx or comment system with htmx , Thanks for your great effort

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

    nice

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

    HTMX is Dope. But How to Refresh instantly the page after deleting the Data, to have the updated template ?

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

    great tutorial, but at 21:16 you say you will get to the book_form.html file in a second, but only got to it at 31:30, when the code inside was already finished. it got a noob like me very puzzled

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

    Friend, how I could install on public web (not only intranet)... please!

  • @ВладимирВласов-н5д
    @ВладимирВласов-н5д 3 ปีที่แล้ว +1

    Hi! As i tested your code... your has one mistake - method update_book return on template vill create new one instance with updated field if you refresh url (ctrl+r) after save on html page. It is problem for me, cause do not know how solve it.

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

    How would we do this with django and react?

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

    At around 7:50 how did you go into the inlineformset_factory to see the parameters?

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

      hold CTRL and left click in vscode

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

    👍👍👍

  • @gabi-e1i
    @gabi-e1i 2 ปีที่แล้ว +1

    How do i contact you?

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

    What about creating the Author and the books in the same submit? The video only shows how to add books to an already created author. Nice video tho!

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

    I have a doubt How can we submit all the forms on single submit button??

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

    Well, I just realize if this approach in a form with static and dynamic fiels in a single post.

  • @edtix
    @edtix 11 หลายเดือนก่อน

    How to do this with only one submit button? I would like to add multiple books at once.

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

    Once can write {{csrf_token}} inside forms, no need to write that Js.

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

    Hi everyone!
    I did all from this tutorial and but still got error - 404 Not Found when i send form (when i click the submit buttun). The detail description is here stackoverflow.com/questions/76203531/django-redirect-url-not-found-404-during-working-with-dynamic-forms-htmx. Please help

  • @drustan6890
    @drustan6890 9 หลายเดือนก่อน

    hx_post =" . " doesnt work for me. I need to do hx_post = " ", then it works when doing 33:00

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

    Nice content, as always... How would I archieve a global validation of an author. Just a dummy example: an author can only have a even number of books... 2 books... 4 books... With a formset we can create a formset validation. Would it be possible with this approach?

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

    I think you should send GET request not POST when getting the details not editing

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

    also, the whole of the code in here is quite different from the finished code on github and on your website

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

    Please make video how to make a complete website using Django

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

    Awful, just flying around, nothing explained!

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

    nice