71 - HTMX Typeahead & Search in Django - Python & Django 3.2 Tutorial Series

preview_player
Показать описание
71 - HTMX Typeahead & Search in Django - Python & Django 3.2 Tutorial Series

Try Django 3.2 is a series to teach you the fundamentals of creating web applications with Python & Django by building a real project step-by-step.

Рекомендации по теме
Комментарии
Автор

so goood HTMX and Django is a game changer… few understand

endernator
Автор

For the hx-trigger of the select tag, I simply used hx-trigger="change delay:200ms" and it worked.

megaraph
Автор

When the initial search results are rendered with an HTMX request, the queryset is limited to 5, and the "View All" link is displayed because the request is an HTMX request. When you click the "View All" link, a full page reload occurs, which is a regular (non-HTMX) request. In this regular request, the queryset contains all the objects, and because it's not an HTMX request, the "View All" link is not displayed.

batman_
Автор

Great series!
Did the ‘type’ select need the trigger ‘when changed’ rather than keyup to wire in correctly when it wasn’t working about 1/2 way through.

stevepole