Building Django forms with django-crispy-forms

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

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

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

    I'll be honest, I have seen too many Django tutorials but you are the only one who can actually go straight to the point in the most clear way possible.

  • @FredSq
    @FredSq 8 หลายเดือนก่อน +4

    the way you are demonstrating things is incredible❤

    • @bugbytes3923
      @bugbytes3923  8 หลายเดือนก่อน +1

      Thanks a lot for the nice comment!

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

    Structured, Well presented and at just the right pace, as all your videos are. I've used crispy forms before, but still learned things (and better ways to do what I was doing as well). Thanks.

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

      Thanks Darren, that's very good to hear that! Cheers!

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

    Hello Master 🙌🏾🙌🏾🙌🏾, i think you're reading in people's mind 🤔. I really was in need of how to do htmx with crispy forms and abracadabra 🪄 you did it 😌. GOD BLESS MATE. YOU ARE GREAT MAN 🙌🏾.

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

      Thanks man! Well, I wish I could read people's minds 😂 But I'm glad the videos are useful for you! Cheers!

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

    Great video. I follow you for a while now and want to say you are getting better . Keep the good work.

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

      Thanks Eric, I appreciate that comment!

  • @JT-mr3db
    @JT-mr3db 9 หลายเดือนก่อน

    Using crispy as is really works great, especially if all you want are the bootstrap classes. If you decide to venture in to the custom template pack world, you really see first hand how much complexity it is hiding you from you.

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

    No amount of django crispy forms can render any website as 'crespy' as your accent. wow😁

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

    amazin video and amazin tools introduced just is such short video. superb and big thanks

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

      Thank you for watching - glad you enjoyed it!

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

    Nice content! Excelent video! Greetings from Brazil!

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

      Thank you! Nice one, I'm hoping to visit Brazil someday! Glad to hear you like the video.

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

    no trash talk, good.

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

    Big Thanks! Very simple lecture

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

    Your accent is lovely mate

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

    Great
    Video
    Mate!

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

    Do a Django allauth video. With multiple user type registration say, register as Teacher or Student. And how you can restrict views using decorators functions for them. Thank youuu

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

      That's a great suggestion, thanks! I'll definitely look into doing an allauth video in the next month or so. Thanks again!

  • @coder.come123
    @coder.come123 9 หลายเดือนก่อน

    Good Bless you . ❤👌

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

    that's great! thank you!

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

    awesome thanks😅

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

    I'm new to Django, i was confused , i forgot to add bootstrap CSS , script links in base file😆

  • @user-qw5nm2rw3e
    @user-qw5nm2rw3e 8 หลายเดือนก่อน

    How do we style it if we require a little bit of customisation or if we require another framework like Tailwind?
    This strategy has drawbacks, in my opinion.
    Since I'm a student, my expertise is limited.

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

    hallo BugBytes beautiful video

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

    Nice video

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

    Thank you very much this solved my problem. But could you point me to a video that explains Modal Popup, I will really appreciate

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

    I started off with BootStrap5, hands me over a lot of control in the template. Just read Crispy docs, and it seems nice. But the question I am askimg to myself is: do I want to build the whole html in the view instead of template? I am not sure at this point.

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

      If you prefer to build in the template (as I generally do), you can use django-widget-tweaks alongside Django form fields to add Bootstrap classes to the fields.

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

    Widgets working perfect thank you. But after used widget verbose_name changed, how can I setup verbose_name correctly, any help?

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

    how I get `dd/mm/yyyy` date format in form ?

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

    I can't seem to make the Inline radio select :( do you have any idea how to implement this?

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

    How to add a variable running javascript code and its value as an attribute to a django form field.

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

    How do you go about model forms?

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

    Great video. You have new subscriber here!! One question.....how is it going to work if I need to pass pk to my reverse_lazy function? (I'm really new to Django and web dev.) Thank in advance!!

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

      Thank you.
      You can pass kwargs to the reverse_lazy function, so for example you can pass the primary key. Something like this:
      reverse_lazy('my-url', kwargs={'pk': 1})

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

      I kinda fixed the problem. I use CBV and I use success url and get_success_url so i don't need to specify it in the form. Thanks for the answer!

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

      Another question that i cant find solution in google is how to change the labels font size from the crispy forms? or to simply do it via CSS

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

    this video contains steps that i couldn't follow quite well, is this by chance a Part 2 video?
    i didn't see you creating the forms.py file and index.html and base.html

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

      The starter code can be found in this Git repo: github.com/bugbytes-io/crispy-forms-htmx
      (you can work from the Starter code directory - create the forms.py file and follow along with the video)
      Thanks for letting me know - I've added that link to the video description, too.

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

      @@bugbytes3923 you're welcome bud, thanks for the answer

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

    muy bueno loko

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

    I love youuuu

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

    some help ! I do not how to fix this: ModuleNotFoundError: No module named ‘crispy_forms’

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

      Hey. You have not installed crispy forms in your environment, try these commands:
      pip install django-crispy-forms
      And then add crispy_forms to your installed apps

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

      @@bugbytes3923 hi ! i have to create a new virtual enviroment. now works

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

    Hey man, awesome explanation. Can i know how can I contact you i have a project at my work that has some complex crispy form usage so need your help there

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

      Thanks. Feel free to email:
      www.bugbytes.io/contact/

  • @user-qw5nm2rw3e
    @user-qw5nm2rw3e 8 หลายเดือนก่อน

    How do we style it if we require a little bit of customisation or if we require another framework like Tailwind?
    This strategy has drawbacks, in my opinion.
    Since I'm a student, my expertise is limited.