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.
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?
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.
@@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.
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)
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.
Can’t thank you enough for pointing this out!
@@veryacademy This should be pinned :)
You help me so much. Please never stop.
Videos will keep coming until people stop watching, thank you
have any video on datatables with htmx pagination.? load more on one point breaking browser if you have thousands of records.
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?
or at least inside of the get_template_names method the if self.request.htmx: isn't being evaluated to true
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.
@@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.
@@csharpworm7597 do you have HTMX js file in your static dir?
@@jacekbaczkowski3692 No, I do not see a HTMX.js file in my static dir.
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)
Could you please do this in view function:(
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.
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!
Thank you very much