How to Easily Style Your Django Form Fields With Django Widget Tweaks

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • Add classes and other attributes to your form fields in Django by using the Django Widget Tweaks library.
    WORK WITH ME👇🏼
    ✅ Implement features and fix bugs in your app: Live, one-on-one screenshare
    prettyprinted....
    💻 Code written in video
    prettyprinted....

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

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

    short and well explained..thanks

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

    Straight to the point, thanks!

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

    Ty sooo much. Very useful and concise guide!

  • @MolinMay
    @MolinMay 27 วันที่ผ่านมา

    thanks a lot, that was a life saver

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

    Ty bro, i relly needed this knowlege to make my project. Thanks!

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

    Thanks for your knowledge, is it possible for you one day to cover about django crispy forms?

  • @FabioRibeiro-mu4ok
    @FabioRibeiro-mu4ok 3 หลายเดือนก่อน

    Thank you so much for share!!!

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

    Increible so good , thanks bro

  • @FabioRibeiro-mu4ok
    @FabioRibeiro-mu4ok 3 หลายเดือนก่อน

    Thanks!

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

    Just wondering about error handling. Will the errors appear underneath the fields? Or is there a widget-tweaks thing for that?

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

    thanks ma dude

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

    Do you preffer this method of styling forms in django or maybe you more like creating normal html form with id="{{ form.x.id_for_label }}"?

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

      In my opinion second method is better because it doesn't need any 3rd packages and it looks easier for juniors

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

      I prefer the first because it still follows the pattern of letting Django generate the form fields. But I think the second approach is just fine, and yeah you're right it's more obvious what's going on in the second.

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

    hi thanks for this great video have a problem with date field, I need to show date field with custom format d-m-Y I did not see it in the documentation

  • @サタン-e7i
    @サタン-e7i ปีที่แล้ว

    Can I use this line " class+=' ' " to add a class name and style it with CSS??

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

    How can we show errors or add new errors with widget-tweaks?

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

    It was useful