django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django

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

КОМЕНТАРІ • 39

  • @bugbytes3923
    @bugbytes3923  2 місяці тому

    ☕ Buy a coffee: ko-fi.com/bugbytes
    ⭐Top resource to learn Python - datacamp.pxf.io/kOjKkV ⭐

  • @ItsEverythingElse
    @ItsEverythingElse 5 місяців тому +8

    Cotton has been a game-changer for my current site development. Combined with Tailwind and htmx it's an amazing combo.

    • @bugbytes3923
      @bugbytes3923  5 місяців тому +1

      @@ItsEverythingElse agreed - I love it!

  • @anouarben779
    @anouarben779 5 місяців тому +9

    This is the only channel that I automatically like its videos without even thinking abt it

    • @bugbytes3923
      @bugbytes3923  5 місяців тому +2

      @@anouarben779 thank you! That is amazing to hear, thanks for the support!

  • @silkogelman
    @silkogelman 5 місяців тому +4

    Django Cotton looks very interesting, I'm definitely going to try it.
    Thank you Lyle and I love that you explain it in combination with Tailwind and HTMX.

    • @bugbytes3923
      @bugbytes3923  5 місяців тому

      @@silkogelman thanks a lot Sil, glad you liked the video and good to hear from you!

  • @khunjohn1054
    @khunjohn1054 5 місяців тому +2

    I've been playing around with this package after you discovered it. I noticed that you didn't make the base.html a Cotton component itself. That way you can easily make the nav an additional component and swap or remove it, based on rights/apps/ etc. This package seems very promising and a big thanks for those working on it. Thanks for the great work getting these demos on YT.

    • @bugbytes3923
      @bugbytes3923  5 місяців тому

      @@khunjohn1054 interesting suggestion about base.html - thank you!

  • @eagleofsharm
    @eagleofsharm 4 місяці тому +2

    Great content as always BugBytes, Thank you.

  • @mpicuser
    @mpicuser 5 місяців тому +3

    I'm in the front row. Thanks for this video!

  • @Yosk-p8j
    @Yosk-p8j 5 місяців тому +3

    Amazing this helped me alot with HTMX with pagination Many many thanks!

    • @bugbytes3923
      @bugbytes3923  5 місяців тому

      @@Yosk-p8j thanks a lot! Glad to hear it helped!

  • @2011kamp
    @2011kamp 4 місяці тому +1

    Great learning, kindly extend to include dynamic search, thanks

    • @bugbytes3923
      @bugbytes3923  4 місяці тому +1

      Thank you - will try and add another to this soon!

    • @2011kamp
      @2011kamp 4 місяці тому

      @@bugbytes3923 Thank you

  • @David-eb8lh
    @David-eb8lh 5 місяців тому

    A great playlist

  • @awnion
    @awnion 4 місяці тому

    I love your accent 🥰

  • @eduardoconcepcion4899
    @eduardoconcepcion4899 5 місяців тому

    Thanks for the video.
    I would suggest to take a look at the package pytailwindcss-extra.

    • @bugbytes3923
      @bugbytes3923  5 місяців тому

      @@eduardoconcepcion4899 thank you, will do!

  • @serychristianrenaud
    @serychristianrenaud 5 місяців тому +1

    thanks

    • @bugbytes3923
      @bugbytes3923  5 місяців тому

      @@serychristianrenaud thanks for watching!

  • @frameff9073
    @frameff9073 5 місяців тому +1

    good thank you

  • @BuzzNoodle33
    @BuzzNoodle33 5 місяців тому +1

    The package seems promising. I can see that there is a caching mechanism to boost performance. However, I am wondering how it holds up when numerous cotton components populate a single page. Does it significantly impact performance, or is it a negligible concern?
    Thanks for the video. Perfect as always. :)

    • @bugbytes3923
      @bugbytes3923  5 місяців тому +1

      @@BuzzNoodle33 thanks a lot! I’d be interested to explore the affect on performance when using a lot of components, perhaps one for a future video

  • @tiepluudanh
    @tiepluudanh 2 місяці тому

    Would it be possible to show more “production” ready way to use the packages. I do not really think that using CDN is recommended for development right?

  • @ale6au
    @ale6au 4 місяці тому

    Again some great content! Thanks a lot for all your work! Do you plan to do a similar video but using alpinejs for filtering? I'm having some issues to pass the data from alpinejs to django-cotton components, and I'd rather use alpinejs instead of htmx for my specific use case... Do you know if it's supposed to be possible/easy?

    • @wrabit1
      @wrabit1 4 місяці тому

      It should be fine, I use mainly with alpine

    • @ale6au
      @ale6au 4 місяці тому

      @@wrabit1 Thanks for your answer. But I don't manage to understand how though. My first attempt is to use the alpine directive x-bind in the django-cotton definition, for instance : This is not working as the binding does not seem to be applied... Would you have an idea?

    • @wrabit1
      @wrabit1 4 місяці тому

      ​@@ale6au inside your component, you should define {{ attrs }} where you want them to land.

  • @sowmiyapannerselvam997
    @sowmiyapannerselvam997 Місяць тому

    I want code

    • @bugbytes3923
      @bugbytes3923  Місяць тому

      @@sowmiyapannerselvam997 GitHub link is in the description