HTMX Post Pagination | Django Project | djblogger | 30

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

КОМЕНТАРІ • 18

  • @MushfiqFeed
    @MushfiqFeed Рік тому +6

    In this video you paused your video for installing django-htmx and at that time you may forgot to mention that: htmx.min.js must be include in base.html.

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

      Can’t thank you enough for pointing this out!

    • @kevinl.9657
      @kevinl.9657 Рік тому +2

      @@veryacademy This should be pinned :)

  • @ashleynmason
    @ashleynmason Рік тому +3

    You help me so much. Please never stop.

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

      Videos will keep coming until people stop watching, thank you

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

    have any video on datatables with htmx pagination.? load more on one point breaking browser if you have thousands of records.

  • @csharpworm7597
    @csharpworm7597 Рік тому +2

    For some reason hx-get doesn't seem to be triggering the get_template_names function. I've pip installed django-htmx and added it to the installed_apps and middleware sections but nothing. using chrome debugger I see no request being added on the network when scrolling to the last item of the page... Can you think of something I may have missed that would exhibit this behavior?

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

      or at least inside of the get_template_names method the if self.request.htmx: isn't being evaluated to true

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

      Hmmm. Keep an eye on the terminal and see if an event is triggered. If not, that puts all the effort into the front end. Going to be either the HMTX, or you are sending it to the wrong URL. Try and get a basic request triggering with HTMX. Maybe start by making a button to trigger a request.

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

      @@veryacademy will do. It seems it’s an issue with Htmx but I’ll give the button a try to confirm.
      Thanks for all the work you’ve put into this and other learning material.

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

      @@csharpworm7597 do you have HTMX js file in your static dir?

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

      @@jacekbaczkowski3692 No, I do not see a HTMX.js file in my static dir.

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

    Anyone else hit a roadblock with django paginator? It runs a count(*) and slows down my search by 2-fold.
    Indexing hasn't helped. Anyone know how to build a production-grade paginator (no DRF)

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

    Could you please do this in view function:(

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

    Thank you so much for this, learnt a lot.
    Please can I post a link to some udemy django and htmx course that has a coupon that expires in some days.

    • @veryacademy
      @veryacademy  Рік тому +2

      When I search HTMX on Udemy, there aren't any courses on that subject. There is a task for me over the next few months!

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

    Thank you very much