Django tutorial: Django Autocomplete Input with Dropdown using Datalist | Django casts

preview_player
Показать описание
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 @:

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

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

Just what i needed! Simple & short, thank you!

rxlvnd
Автор

Brilliant, thanks! And like how clear and concise the tutorial is

HadarsGrasp
Автор

What video should I make next? Any suggestions? *Write me in comments!*
Follow me @:

RedEyedCoderClub
Автор

You have really made me Happy with this video. Easy and Clear!!!

ivanlozano
Автор

I think this is very easy tho powerful process. Thank you a lot for this video, it's certainly underrated

exg
Автор

Mate, you're a life saver! Thank you!

EnzoAuditore
Автор

Thank you very much! Looks pretty easy :)

abrikosa
Автор

Great tutorial! I am just wondering if it would work fine if you have as options like 20, 000 addresses (strings of 40 - 60 characters)? 😶

kkkk
Автор

Thanks, It's very important information for me.

zmeygarynich
Автор

Superb superb superb
Sir assumed that a django form hv several textbox like designation, department, grade and while typing department filter description and code. When press enter key fetch description for display and code for store to db likewise designation, grade and etc

asgeralia
Автор

great video. thanks a lot. Easier than using select2

wisdomnagaye
Автор

thanks, you are the best Django teacher I have a question what if my City Model has 2000 cities how i can implement this tut?

alexdin
Автор

Sir my request is not response. Sir can u pls explain in employee form

asgeralia
Автор

Олег, мне кажется, что было бы больше эффекта, если бы ты вернулся к своей аудитории. У тебя был прекрасный русскоязычный контент по python. На твоих роликах "выросло" много июней. Ну зачем это всё?!!))

felixua
Автор

очень просто и не требует установки библиотек

RunItUpk