Django tutorial: Django Autocomplete Input with Dropdown using Datalist | Django casts
This Django tutorial is about adding autocomplete to an Input field in Django. Autocomplete options appear in a dropdown menu, and are populated from a database. The core of this autocomplete feature is HTML5 datalist tag for input tag.
Datalists allow us to create a group of `option`s that can be accessed (and autocompleted) from within an `input` tag.
Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter: https://twitter.com/CoderEyed
Facebook: https://fb.me/redeyedcoderclub
Timecodes:
00:00 - Demo, creating a model
00:59 - Populating a database
02:02 - View, passing retrieved objects to template
02:38 - Template. Adding an input field and datalist tag to Django template, populating option tags from database
Django tutorial: Django Autocomplete Input with Dropdown using Datalist | Django casts
https://youtu.be/RnFwK_Z_f70
#python #django #redeyedcoderclub
Видео Django tutorial: Django Autocomplete Input with Dropdown using Datalist | Django casts автора Академия стилизации кода
Видео Django tutorial: Django Autocomplete Input with Dropdown using Datalist | Django casts автора Академия стилизации кода
Информация
27 ноября 2023 г. 8:02:58
00:04:55
Похожие видео