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.
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